[PATCH] fixup! ARM: stm32mp: migrate board initcalls to board drivers

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Oct 5 05:39:02 EDT 2020


Driver code know does the compatible check for us, so drop the
no longer needed explicit check.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/arm/boards/seeed-odyssey/board.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/boards/seeed-odyssey/board.c b/arch/arm/boards/seeed-odyssey/board.c
index fd077c02b273..8c011898a33e 100644
--- a/arch/arm/boards/seeed-odyssey/board.c
+++ b/arch/arm/boards/seeed-odyssey/board.c
@@ -12,9 +12,6 @@ static int odyssey_som_probe(struct device_d *dev)
 	int flags;
 	int instance = bootsource_get_instance();
 
-	if (!of_machine_is_compatible("seeed,stm32mp157c-odyssey-som"))
-		return 0;
-
 	flags = instance == 0 ? BBU_HANDLER_FLAG_DEFAULT : 0;
 	stm32mp_bbu_mmc_register_handler("sd", "/dev/mmc0.ssbl", flags);
 
-- 
2.28.0




More information about the barebox mailing list