summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Jander <david@protonic.nl>2013-08-14 12:38:56 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-14 14:42:53 +0200
commitba3b39d5f0f5523b6895308d35874726009647fa (patch)
tree32244777cbcefa3d6b65da9347f9a5cb3e2a2580
parent938c76198f3f4e73964d52c4b01b744a62db69c4 (diff)
downloadbarebox-ba3b39d5f0f5523b6895308d35874726009647fa.tar.gz
barebox-ba3b39d5f0f5523b6895308d35874726009647fa.tar.xz
of: base.c: Use correct device-tree in of_add_initrd()
Otherwise only the internal DT is modified, not necessarily the one passed to the kernel. Signed-off-by: David Jander <david@protonic.nl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/of/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 33dfd5a51d..4770421a2b 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1735,7 +1735,7 @@ int of_add_initrd(struct device_node *root, resource_size_t start,
struct device_node *chosen;
__be32 buf[2];
- chosen = of_find_node_by_path("/chosen");
+ chosen = of_find_node_by_path_from(root, "/chosen");
if (!chosen)
return -EINVAL;