[PATCH 1/4] of: Use correct devicetree in of_print_cmdline

Sascha Hauer s.hauer at pengutronix.de
Sat Jul 27 04:32:18 EDT 2013


of_print_cmdline() is passed a devicetree, so use this one instead
of the internal devicetree. This fixes the cmdline printout when
bootm on ARM is used with an external devicetree.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/oftree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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_property(const void *data, int len)
 
 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) {
-- 
1.8.3.2




More information about the barebox mailing list