summaryrefslogtreecommitdiffstats
path: root/scripts/dtc/livetree.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-04-29 17:00:05 -0400
committerRob Herring <robh@kernel.org>2015-04-29 18:17:27 -0400
commit4760597116e34bd58f670d008ae7323653268fb4 (patch)
tree2b27799a1dfc5171c7d502cb2ffe094d93ecf7f8 /scripts/dtc/livetree.c
parentf1ec7187167ce225d2744b20a90afef5f10fd6cd (diff)
scripts/dtc: Update to upstream version 9d3649bd3be245c9
Sync dtc with upstream as of commit 9d3649bd3be2 (Add testcases for fdt_path_offset_namelen()). Signed-off-by: Rob Herring <robh@kernel.org> Cc: Grant Likely <grant.likely@linaro.org> Cc: devicetree@vger.kernel.org
Diffstat (limited to 'scripts/dtc/livetree.c')
-rw-r--r--scripts/dtc/livetree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/dtc/livetree.c b/scripts/dtc/livetree.c
index b61465fb2f33..e229b84432f9 100644
--- a/scripts/dtc/livetree.c
+++ b/scripts/dtc/livetree.c
@@ -511,7 +511,9 @@ struct node *get_node_by_phandle(struct node *tree, cell_t phandle)
511 511
512struct node *get_node_by_ref(struct node *tree, const char *ref) 512struct node *get_node_by_ref(struct node *tree, const char *ref)
513{ 513{
514 if (ref[0] == '/') 514 if (streq(ref, "/"))
515 return tree;
516 else if (ref[0] == '/')
515 return get_node_by_path(tree, ref); 517 return get_node_by_path(tree, ref);
516 else 518 else
517 return get_node_by_label(tree, ref); 519 return get_node_by_label(tree, ref);