diff options
-rw-r--r-- | drivers/of/base.c | 2 |
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; |