summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2024-08-26 17:29:31 +0530
committerTom Rini <trini@konsulko.com>2024-09-03 14:08:50 -0600
commitb58caada601b1929fab1e6c3a4fcfc016e1b9fbd (patch)
treecdca90c2255da93ddb489970df7acafe9cf9332b
parent6534d26ee9a5217faaba8e49cbd95ce5ef107ee8 (diff)
lmb: remove the unused board_lmb_reserve() function
The board_lmb_reserve() function is not being used, and currently there is only an empty weak function defined. Remove this unused function. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r--include/lmb.h2
-rw-r--r--lib/lmb.c6
2 files changed, 0 insertions, 8 deletions
diff --git a/include/lmb.h b/include/lmb.h
index fb1a6db8e2b..fc2daaa7bfc 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -107,8 +107,6 @@ long lmb_free(phys_addr_t base, phys_size_t size);
void lmb_dump_all(void);
void lmb_dump_all_force(void);
-void board_lmb_reserve(void);
-
struct lmb *lmb_get(void);
int lmb_push(struct lmb *store);
void lmb_pop(struct lmb *store);
diff --git a/lib/lmb.c b/lib/lmb.c
index dbbc19ede92..9f1bb5ec7de 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -222,7 +222,6 @@ static void lmb_reserve_uboot_region(void)
static void lmb_reserve_common(void *fdt_blob)
{
- board_lmb_reserve();
lmb_reserve_uboot_region();
if (CONFIG_IS_ENABLED(OF_LIBFDT) && fdt_blob)
@@ -690,11 +689,6 @@ int lmb_is_reserved_flags(phys_addr_t addr, int flags)
return 0;
}
-__weak void board_lmb_reserve(void)
-{
- /* please define platform specific board_lmb_reserve() */
-}
-
static int lmb_setup(void)
{
bool ret;