From c47a38b47770887dc9416382207364fb62899fc2 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 2 Apr 2017 12:26:44 -0600 Subject: fdtgrep: Cope with the /aliases node being last With skeleton.dtsi being dropped it is more likely that the /aliases node will be last in the device tree. Update fdtgrep to handle this. Signed-off-by: Simon Glass Tested-by: Masahiro Yamada --- tools/fdtgrep.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tools/fdtgrep.c') diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c index b9078273c9..e373c43e36 100644 --- a/tools/fdtgrep.c +++ b/tools/fdtgrep.c @@ -810,9 +810,6 @@ static int do_fdtgrep(struct display_info *disp, const char *filename) disp->flags); if (count < 0) { report_error("fdt_find_regions", count); - if (count == -FDT_ERR_BADLAYOUT) - fprintf(stderr, - "/aliases node must come before all other nodes\n"); return -1; } if (count <= max_regions) -- cgit v1.2.3