diff --git a/common/oftree.c b/common/oftree.c index aff4c28..f2a3169 100644 --- a/common/oftree.c +++ b/common/oftree.c @@ -100,7 +100,7 @@ void of_print_cmdline(struct device_node *root) { - struct device_node *node = of_find_node_by_path("/chosen"); + struct device_node *node = of_find_node_by_path_from(root, "/chosen"); const char *cmdline; if (!node) {