aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass2017-04-02 12:26:44 -0600
committerSimon Glass2017-04-13 14:43:31 -0600
commitc47a38b47770887dc9416382207364fb62899fc2 (patch)
tree96ca57026419771890c29979c4b458c430edc5bf /tools
parentf156b5b59750f4140ffa2dd6a5eab686ba0212c3 (diff)
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 <sjg@chromium.org> Tested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/fdtgrep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c
index b9078273c95..e373c43e369 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)