9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2013-07-27 07:38:10 +02:00
parent c40df52622
commit 85fce508e7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {