Skip to contentSkip to conversation

librem5: Drop unnecessary BOARD_EARLY_INIT_F usage

PATCH New Tom Rini 1 participant 1 message Mar 25

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 librem5: Drop unnecessary BOARD_EARLY_INIT_F usage

This platform enables CONFIG_BOARD_EARLY_INIT_F and then has a do-nothing board_early_init_f function. Change to not enabling the option and so not needing an empty function.

---
Cc: Angus Ainslie <[email protected]>
Cc: [email protected]

---
 board/purism/librem5/librem5.c | 5 -----
 board/purism/librem5/spl.c     | 2 --
 configs/librem5_defconfig      | 1 -
 3 files changed, 8 deletions(-)
board/purism/librem5/librem5.c +0 -5
index a2bc0c08f0b5..3640ef232c8c 100644
@@ -31,11 +31,6 @@
 #include <usb/xhci.h>
 #include "librem5.h"
 
-int board_early_init_f(void)
-{
-	return 0;
-}
-
 #if IS_ENABLED(CONFIG_LOAD_ENV_FROM_MMC_BOOT_PARTITION)
 uint board_mmc_get_env_part(struct mmc *mmc)
 {
board/purism/librem5/spl.c +0 -2
index 568224f97324..a104ee5c2aab 100644
@@ -547,8 +547,6 @@ void board_init_f(ulong dummy)
 	gpio_direction_output(WIFI_EN, 1);
 #endif
 
-	board_early_init_f();
-
 	timer_init();
 
 	preloader_console_init();
configs/librem5_defconfig +0 -1
index e6ad27ed1bf8..d9d32bf5a50a 100644
@@ -36,7 +36,6 @@ CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_SYS_PBSIZE=1050
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 # CONFIG_SYS_DEVICE_NULLDEV is not set
-CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_BOARD_LATE_INIT=y
 CONFIG_SPL_MAX_SIZE=0x25000
 CONFIG_SPL_BOARD_INIT=y
Signature · 1 line
2.43.0