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:
parent
938c76198f
commit
ba3b39d5f0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue