diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-25 10:22:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-06 11:41:28 +0100 |
commit | 025b5394bd4c744aad5f419354e540003cddcd4b (patch) | |
tree | cb82b7162a17adb64b1e081641acfcbe4f6905c0 /commands/bootm.c | |
parent | 64c199dd29b7eed9def158afba2036fd2ebe905a (diff) | |
download | barebox-025b5394bd4c744aad5f419354e540003cddcd4b.tar.gz barebox-025b5394bd4c744aad5f419354e540003cddcd4b.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/bootm.c')
-rw-r--r-- | commands/bootm.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |