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
@@ -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