From d83bd9729d754333923d10cff923964955898403 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 19 Mar 2026 15:00:12 -0500 Subject: [PATCH] arm: mediatek: mt8195: drop dram_init_banksize() Drop override of dram_init_banksize() weak function for mt8195. This is effectively the same as the default implementation, so we do not need to override it. Reviewed-by: Julien Stephan Tested-by: Julien Stephan Link: https://patch.msgid.link/20260319-mtk-init-fix-dram-v1-9-6171ec141f40@baylibre.com Signed-off-by: David Lechner --- arch/arm/mach-mediatek/mt8195/init.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-mediatek/mt8195/init.c b/arch/arm/mach-mediatek/mt8195/init.c index 0f68c589e9a..ee463e90409 100644 --- a/arch/arm/mach-mediatek/mt8195/init.c +++ b/arch/arm/mach-mediatek/mt8195/init.c @@ -37,14 +37,6 @@ int dram_init(void) return 0; } -int dram_init_banksize(void) -{ - gd->bd->bi_dram[0].start = gd->ram_base; - gd->bd->bi_dram[0].size = gd->ram_size; - - return 0; -} - int mtk_soc_early_init(void) { return 0; -- 2.47.3