Skip to contentSkip to conversation

osm-s-mx93: Drop unnecessary BOARD_EARLY_INIT_F usage

PATCH In review Tom Rini 2 participants 2 messages Mar 25 – Mar 26

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 osm-s-mx93: 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: Frieder Schrempf <[email protected]>

---
 board/kontron/osm-s-mx93/osm-s-mx93.c | 5 -----
 board/kontron/osm-s-mx93/spl.c        | 2 --
 2 files changed, 7 deletions(-)
board/kontron/osm-s-mx93/osm-s-mx93.c +0 -5
index b6feef549d16..02bee34ac663 100644
@@ -22,11 +22,6 @@
 
 #include "../common/hw-uid.h"
 
-int board_early_init_f(void)
-{
-	return 0;
-}
-
 #if IS_ENABLED(CONFIG_KONTRON_HW_UID)
 struct uid_otp_loc uid_otp_locations[] = {
 	{
board/kontron/osm-s-mx93/spl.c +0 -2
index 23a90e351fe9..a47fc43c6aa9 100644
@@ -132,8 +132,6 @@ void board_init_f(ulong dummy)
 
 	arch_cpu_init();
 
-	board_early_init_f();
-
 	spl_early_init();
 
 	preloader_console_init();
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#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.

The description seems a bit off, as it looks like this board isn't even enabling CONFIG_BOARD_EARLY_INIT_F.

But anyway:

Quoted 36 lines

---
Cc: Frieder Schrempf <[email protected]>

---
 board/kontron/osm-s-mx93/osm-s-mx93.c | 5 -----
 board/kontron/osm-s-mx93/spl.c        | 2 --
 2 files changed, 7 deletions(-)
board/kontron/osm-s-mx93/osm-s-mx93.c +0 -5
index b6feef549d16..02bee34ac663 100644
@@ -22,11 +22,6 @@
 
 #include "../common/hw-uid.h"
 
-int board_early_init_f(void)
-{
-	return 0;
-}
-
 #if IS_ENABLED(CONFIG_KONTRON_HW_UID)
 struct uid_otp_loc uid_otp_locations[] = {
 	{
board/kontron/osm-s-mx93/spl.c +0 -2
index 23a90e351fe9..a47fc43c6aa9 100644
@@ -132,8 +132,6 @@ void board_init_f(ulong dummy)
 
 	arch_cpu_init();
 
-	board_early_init_f();
-
 	spl_early_init();
 
 	preloader_console_init();