summaryrefslogtreecommitdiff
path: root/lib/lmb.c
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-03-10 12:16:28 +0300
committerTom Rini <trini@konsulko.com>2021-04-22 21:09:45 +0300
commit4fa0150d6c9c252af6887c55cbacd6734a40e9ab (patch)
treec9ffb2ababc2fa8fbffc6d8b5d6d35d7c87cc6e8 /lib/lmb.c
parent00fd8dad4d2ed738d11f29d992dc106bbdf4d68f (diff)
downloadu-boot-4fa0150d6c9c252af6887c55cbacd6734a40e9ab.tar.xz
lmb: move MAX_LMB_REGIONS value in Kconfig
Move MAX_LMB_REGIONS value in Kconfig, the max number of the regions in lmb library. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'lib/lmb.c')
-rw-r--r--lib/lmb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lmb.c b/lib/lmb.c
index a926198d48..9fbc56619b 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -95,8 +95,8 @@ static void lmb_coalesce_regions(struct lmb_region *rgn, unsigned long r1,
void lmb_init(struct lmb *lmb)
{
- lmb->memory.max = MAX_LMB_REGIONS;
- lmb->reserved.max = MAX_LMB_REGIONS;
+ lmb->memory.max = CONFIG_LMB_MAX_REGIONS;
+ lmb->reserved.max = CONFIG_LMB_MAX_REGIONS;
lmb->memory.cnt = 0;
lmb->reserved.cnt = 0;