Skip to contentSkip to conversation

hikey960: Drop unnecessary BOARD_EARLY_INIT_F usage

PATCH In review Tom Rini 1 participant 2 messages Mar 25 – Apr 8

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 hikey960: 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: Manivannan Sadhasivam <[email protected]>

---
 board/hisilicon/hikey960/hikey960.c | 5 -----
 configs/hikey960_defconfig          | 1 -
 2 files changed, 6 deletions(-)
board/hisilicon/hikey960/hikey960.c +0 -5
index 5029f4edb2af..fb56762fff68 100644
@@ -60,11 +60,6 @@ static struct mm_region hikey_mem_map[] = {
 
 struct mm_region *mem_map = hikey_mem_map;
 
-int board_early_init_f(void)
-{
-	return 0;
-}
-
 int misc_init_r(void)
 {
 	return 0;
configs/hikey960_defconfig +0 -1
index 440f257072d6..1cf1ef12bb51 100644
@@ -19,7 +19,6 @@ CONFIG_SYS_CBSIZE=256
 CONFIG_SYS_PBSIZE=283
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_MISC_INIT_R=y
 CONFIG_SYS_PROMPT="U-Boot => "
 CONFIG_CMD_MD5SUM=y
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

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.

Applied to u-boot/master, thanks!

[1/1] hikey960: Drop unnecessary BOARD_EARLY_INIT_F usage

      commit: 6201fd7c1ffa134f8ba229b434e6f14a3fd5bb14
Signature · 1 line
Tom