summaryrefslogtreecommitdiff
path: root/tools/fdtgrep.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-02 18:26:44 (GMT)
committerSimon Glass <sjg@chromium.org>2017-04-13 20:43:31 (GMT)
commitc47a38b47770887dc9416382207364fb62899fc2 (patch)
tree96ca57026419771890c29979c4b458c430edc5bf /tools/fdtgrep.c
parentf156b5b59750f4140ffa2dd6a5eab686ba0212c3 (diff)
downloadu-boot-c47a38b47770887dc9416382207364fb62899fc2.tar.xz
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/fdtgrep.c')
-rw-r--r--tools/fdtgrep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c
index b907827..e373c43 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)