summaryrefslogtreecommitdiffstats
path: root/common/oftree.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-27 07:38:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-27 07:38:13 +0200
commit85fce508e7e11f3f7721003bd16c0ea3add9581c (patch)
tree422f2fe35ed998af9a3bdd842b85a0cb45b6a4ca /common/oftree.c
parentc40df526224929a7365c3829be979a4beafd9391 (diff)
downloadbarebox-85fce508e7e11f3f7721003bd16c0ea3add9581c.tar.gz
barebox-85fce508e7e11f3f7721003bd16c0ea3add9581c.tar.xz
of: Use correct devicetree in of_print_cmdline
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@pengutronix.de>
Diffstat (limited to 'common/oftree.c')
-rw-r--r--common/oftree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/oftree.c b/common/oftree.c
index aff4c28852..f2a31692ec 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) {