From: David Lechner Date: Thu, 19 Mar 2026 20:00:05 +0000 (-0500) Subject: arm: mediatek: mt7988: drop dram_init_banksize() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bddd6bbef3dce2558182f7e53d9be34a946441e8;p=thirdparty%2Fu-boot.git arm: mediatek: mt7988: drop dram_init_banksize() Drop override of dram_init_banksize() weak function for mt7988. 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-2-6171ec141f40@baylibre.com Signed-off-by: David Lechner --- diff --git a/arch/arm/mach-mediatek/mt7988/init.c b/arch/arm/mach-mediatek/mt7988/init.c index 7ff843585ec..7f4d934bfe9 100644 --- a/arch/arm/mach-mediatek/mt7988/init.c +++ b/arch/arm/mach-mediatek/mt7988/init.c @@ -26,14 +26,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; -} - void reset_cpu(ulong addr) { psci_system_reset();