diff options
| author | David Lechner <[email protected]> | 2026-03-19 15:00:14 -0500 |
|---|---|---|
| committer | David Lechner <[email protected]> | 2026-04-06 18:39:10 -0500 |
| commit | e620d592e8079d407ce6f1694a9ddc8586d580cc (patch) | |
| tree | 37e54f87e51a407d1cce2fc351a9a130cd00994d | |
| parent | 387b4c15b348644d7af2a7f51bd4671183a88726 (diff) | |
arm: mediatek: mt8195: remove call to fdtdec_setup_memory_banksize()
Remove an incorrect call to fdtdec_setup_memory_banksize() in
dram_init() for mt8195.
fdtdec_setup_memory_banksize() populates gd->bd->bi_dram[bank].start
and gd->bd->bi_dram[bank].size base on the "memory" node in the device
tree. However, calling it from dram_init() is too early because gd->bd
has not been allocated yet.
gd->bd->bi_dram[0].start and gd->bd->bi_dram[0].size are already
correctly initialized later in dram_init_banksize(), so we do not need
to replace the removed function call with anything else.
Reviewed-by: Julien Stephan <[email protected]>
Tested-by: Julien Stephan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: David Lechner <[email protected]>
| -rw-r--r-- | arch/arm/mach-mediatek/mt8195/init.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-mediatek/mt8195/init.c b/arch/arm/mach-mediatek/mt8195/init.c index cc9a2c68e0c..6b47ca4b059 100644 --- a/arch/arm/mach-mediatek/mt8195/init.c +++ b/arch/arm/mach-mediatek/mt8195/init.c @@ -18,10 +18,6 @@ int dram_init(void) { int ret; - ret = fdtdec_setup_memory_banksize(); - if (ret) - return ret; - ret = fdtdec_setup_mem_size_base(); if (ret) return ret; |
