diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2024-12-18 09:02:34 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-30 13:21:55 -0600 |
commit | c207d6e3e31fd07885fa341209fcf90740e9f7d6 (patch) | |
tree | 7fa73f03844dca9c6835020d2315468178cd796e | |
parent | 400c34db8957bbe49b15dcc0310697f829c63e01 (diff) |
lmb: Remove lmb_add_region()
There's no point defining a function that's called only once just to
avoid passing the flags. Remove the wrapper and just call
lmb_add_region_flags().
Acked-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
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>
-rw-r--r-- | lib/lmb.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/lmb.c b/lib/lmb.c index da960e422ad..659581f13f2 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -632,19 +632,13 @@ void lmb_add_memory(void) } } -static long lmb_add_region(struct alist *lmb_rgn_lst, phys_addr_t base, - phys_size_t size) -{ - return lmb_add_region_flags(lmb_rgn_lst, base, size, LMB_NONE); -} - /* This routine may be called with relocation disabled. */ long lmb_add(phys_addr_t base, phys_size_t size) { long ret; struct alist *lmb_rgn_lst = &lmb.available_mem; - ret = lmb_add_region(lmb_rgn_lst, base, size); + ret = lmb_add_region_flags(lmb_rgn_lst, base, size, LMB_NONE); if (ret) return ret; |