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:
parent
c40df52622
commit
85fce508e7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue