summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2024-08-26 17:29:15 +0530
committerTom Rini <trini@konsulko.com>2024-09-03 14:08:49 -0600
commitf506ca00d6c27a56b9471b49c706b2374bfa40ca (patch)
treeb1379046a9e32ec806bab565b589dcc24914b8a6
parentc4eced2ec0d566e69281a2c20b0b43a141574318 (diff)
lmb: remove the unused lmb_is_reserved() function
The lmb_is_reserved() API is not used. There is another API, lmb_is_reserved_flags() which can be used to check if a particular memory region is reserved. Remove the unused API. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/lmb.h11
-rw-r--r--lib/lmb.c5
2 files changed, 0 insertions, 16 deletions
diff --git a/include/lmb.h b/include/lmb.h
index 231b68b27d9..6c50d93e832 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -118,17 +118,6 @@ phys_addr_t lmb_alloc_addr(struct lmb *lmb, phys_addr_t base, phys_size_t size);
phys_size_t lmb_get_free_size(struct lmb *lmb, phys_addr_t addr);
/**
- * lmb_is_reserved() - test if address is in reserved region
- *
- * The function checks if a reserved region comprising @addr exists.
- *
- * @lmb: the logical memory block struct
- * @addr: address to be tested
- * Return: 1 if reservation exists, 0 otherwise
- */
-int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr);
-
-/**
* lmb_is_reserved_flags() - test if address is in reserved region with flag bits set
*
* The function checks if a reserved region comprising @addr exists which has
diff --git a/lib/lmb.c b/lib/lmb.c
index 44f98205310..adc3abd5b46 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -565,11 +565,6 @@ int lmb_is_reserved_flags(struct lmb *lmb, phys_addr_t addr, int flags)
return 0;
}
-int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr)
-{
- return lmb_is_reserved_flags(lmb, addr, LMB_NONE);
-}
-
__weak void board_lmb_reserve(struct lmb *lmb)
{
/* please define platform specific board_lmb_reserve() */