aboutsummaryrefslogtreecommitdiff
path: root/common/bootm.c
diff options
context:
space:
mode:
authorSimon Goldschmidt2019-01-14 22:38:20 +0100
committerTom Rini2019-01-16 16:37:06 -0500
commit5b978dab7b8b534e9bf50b97a875dbc9c15cfb54 (patch)
tree8ee2574f752cb8e78406e9c72a7a75ec80ac9bca /common/bootm.c
parentaa3c609e2be5a837e7b81e308d47f55b67666bd6 (diff)
bootm: use new common function lmb_init_and_reserve
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/bootm.c')
-rw-r--r--common/bootm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 80f304ce9f1..a4618b6d2e1 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -56,15 +56,11 @@ static void boot_start_lmb(bootm_headers_t *images)
ulong mem_start;
phys_size_t mem_size;
- lmb_init(&images->lmb);
-
mem_start = env_get_bootm_low();
mem_size = env_get_bootm_size();
- lmb_add(&images->lmb, (phys_addr_t)mem_start, mem_size);
-
- arch_lmb_reserve(&images->lmb);
- board_lmb_reserve(&images->lmb);
+ lmb_init_and_reserve(&images->lmb, (phys_addr_t)mem_start, mem_size,
+ NULL);
}
#else
#define lmb_reserve(lmb, base, size)