9
0
Fork 0

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>
This commit is contained in:
David Jander 2013-08-14 12:38:56 +02:00 committed by Sascha Hauer
parent 938c76198f
commit ba3b39d5f0
1 changed files with 1 additions and 1 deletions

View File

@ -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;