lmb: Remove lmb_reserve_flags()
lmb_reserve() is just calling lmb_reserve_flags() with LMB_NONE.
There's not much we gain from this abstraction.
So let's remove the latter, add the flags argument to lmb_reserve()
and make the code a bit easier to follow.
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
(cherry picked from commit 900a8951c3)
This commit is contained in:
committed by
Simon Glass
parent
65a9881993
commit
8e54e97f09
@@ -87,7 +87,7 @@ static int booti_start(struct bootm_info *bmi)
|
||||
images->os.start = relocated_addr;
|
||||
images->os.end = relocated_addr + image_size;
|
||||
|
||||
lmb_reserve(images->ep, le32_to_cpu(image_size));
|
||||
lmb_reserve(images->ep, le32_to_cpu(image_size), LMB_NONE);
|
||||
|
||||
/*
|
||||
* Handle the BOOTM_STATE_FINDOTHER state ourselves as we do not
|
||||
|
||||
@@ -179,7 +179,7 @@ static ulong load_serial(long offset)
|
||||
{
|
||||
void *dst;
|
||||
|
||||
ret = lmb_reserve(store_addr, binlen);
|
||||
ret = lmb_reserve(store_addr, binlen, LMB_NONE);
|
||||
if (ret) {
|
||||
printf("\nCannot overwrite reserved area (%08lx..%08lx)\n",
|
||||
store_addr, store_addr + binlen);
|
||||
|
||||
Reference in New Issue
Block a user