summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/bootm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-17 19:36:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 11:41:27 +0100
commit04bd477ee42687075e13dabb6c11f90a685a5450 (patch)
tree4faab44d91f65d42e1f8028e71d6011d3edaca76 /arch/arm/lib/bootm.c
parentb50c00a61dd240db7b882e6fe848d1835797f3cb (diff)
downloadbarebox-04bd477ee42687075e13dabb6c11f90a685a5450.tar.gz
barebox-04bd477ee42687075e13dabb6c11f90a685a5450.tar.xz
ARM bootm: Use of_get_fixed_tree
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/bootm.c')
-rw-r--r--arch/arm/lib/bootm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index dc29004792..cf192cf026 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -181,13 +181,7 @@ static int do_bootz_linux_fdt(int fd, struct image_data *data)
}
if (IS_BUILTIN(CONFIG_OFTREE)) {
- fdt_open_into(oftree, oftree, end + 0x8000);
-
- ret = of_fix_tree(oftree);
- if (ret)
- return ret;
-
- data->oftree = oftree;
+ data->oftree = of_get_fixed_tree(oftree);
}
pr_info("zImage: concatenated oftree detected\n");