[PATCH] ARM: imx53: vincell: guard board initcall

Lucas Stach l.stach at pengutronix.de
Thu Aug 27 01:59:14 PDT 2015


Make sure that the initcall only executes on the expected board.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
Sascha, please apply to master. This breaks other boards.
---
 arch/arm/boards/guf-vincell/board.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boards/guf-vincell/board.c b/arch/arm/boards/guf-vincell/board.c
index d27d9e4ddf05..ad47ee25580b 100644
--- a/arch/arm/boards/guf-vincell/board.c
+++ b/arch/arm/boards/guf-vincell/board.c
@@ -40,6 +40,9 @@ static void vincell_fec_reset(void)
 
 static int vincell_devices_init(void)
 {
+	if (!of_machine_is_compatible("guf,imx53-vincell"))
+		return 0;
+
 	writel(0, MX53_M4IF_BASE_ADDR + 0xc);
 
 	clk_set_rate(clk_lookup("emi_slow_podf"), 133333334);
-- 
2.5.0




More information about the barebox mailing list