From 025b5394bd4c744aad5f419354e540003cddcd4b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 25 Feb 2013 10:22:09 +0100 Subject: bootm: Use of_print_nodes instead of fdt_print Now that we use the unflattened tree in bootm we can use of_print_nodes instead of printing the flattened tree. Signed-off-by: Sascha Hauer --- commands/bootm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/bootm.c') diff --git a/commands/bootm.c b/commands/bootm.c index 38233e72f1..65a75e20ba 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -194,15 +194,15 @@ static int bootm_open_oftree(struct image_data *data, const char *oftree, int nu return -EINVAL; } + if (bootm_verbose(data) > 1) + of_print_nodes(node, 0); + fixfdt = of_get_fixed_tree(node); if (!fixfdt) return -EINVAL; free(fdt); - if (bootm_verbose(data) > 1) - fdt_print(fixfdt, "/"); - data->oftree = fixfdt; return 0; -- cgit v1.2.3