aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/bootz.c
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2024-12-18 09:02:32 +0200
committerTom Rini <trini@konsulko.com>2024-12-30 13:21:55 -0600
commit900a8951c3b6035c25632438ebc7240cbc77883c (patch)
tree92cc6937f3ecd135ef4022caa7288ac45db5feac /cmd/bootz.c
parent3d56c06551d7a54870cfdf8c639b3ff35521b87f (diff)
downloadu-boot-900a8951c3b6035c25632438ebc7240cbc77883c.tar.gz
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>
Diffstat (limited to 'cmd/bootz.c')
-rw-r--r--cmd/bootz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootz.c b/cmd/bootz.c
index 787203f5bd7..99318ff213f 100644
--- a/cmd/bootz.c
+++ b/cmd/bootz.c
@@ -56,7 +56,7 @@ static int bootz_start(struct cmd_tbl *cmdtp, int flag, int argc,
if (ret != 0)
return 1;
- lmb_reserve(images->ep, zi_end - zi_start);
+ lmb_reserve(images->ep, zi_end - zi_start, LMB_NONE);
/*
* Handle the BOOTM_STATE_FINDOTHER state ourselves as we do not