diff options
Diffstat (limited to 'kernel/scripts/dtc/livetree.c')
-rw-r--r-- | kernel/scripts/dtc/livetree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/scripts/dtc/livetree.c b/kernel/scripts/dtc/livetree.c index b61465fb2..e229b8443 100644 --- a/kernel/scripts/dtc/livetree.c +++ b/kernel/scripts/dtc/livetree.c @@ -511,7 +511,9 @@ struct node *get_node_by_phandle(struct node *tree, cell_t phandle) struct node *get_node_by_ref(struct node *tree, const char *ref) { - if (ref[0] == '/') + if (streq(ref, "/")) + return tree; + else if (ref[0] == '/') return get_node_by_path(tree, ref); else return get_node_by_label(tree, ref); |