summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-03-25 13:00:27 -0600
committerPatrice Chotard <[email protected]>2026-04-30 08:01:11 +0200
commit5ab39c8a669b5bda660c71e121cb65d508509b07 (patch)
tree73d1791f12727e914dfba32a1dea3302ec380044 /arch
parent5166658ac605a6adc3066280a3b938b27bd388ec (diff)
arm: stm32mp: Drop unnecessary BOARD_EARLY_INIT_F usage
All of these platforms enable CONFIG_BOARD_EARLY_INIT_F and then have a do-nothing board_early_init_f function. Change to not enabling the option and so not needing an empty function. Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-stm32mp/stm32mp1/spl.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/arm/mach-stm32mp/stm32mp1/spl.c b/arch/arm/mach-stm32mp/stm32mp1/spl.c
index e63bdaaf42f..d2e41b8e65f 100644
--- a/arch/arm/mach-stm32mp/stm32mp1/spl.c
+++ b/arch/arm/mach-stm32mp/stm32mp1/spl.c
@@ -90,11 +90,6 @@ void spl_display_print(void)
}
#endif
-__weak int board_early_init_f(void)
-{
- return 0;
-}
-
uint32_t stm32mp_get_dram_size(void)
{
struct ram_info ram;
@@ -204,10 +199,12 @@ void board_init_f(ulong dummy)
/* enable console uart printing */
preloader_console_init();
- ret = board_early_init_f();
- if (ret) {
- log_debug("board_early_init_f() failed: %d\n", ret);
- hang();
+ if (IS_ENABLED(CONFIG_BOARD_EARLY_INIT_F)) {
+ ret = board_early_init_f();
+ if (ret) {
+ log_debug("board_early_init_f() failed: %d\n", ret);
+ hang();
+ }
}
ret = uclass_get_device(UCLASS_RAM, 0, &dev);