[PATCH 1/2] ARM: ccxmx53: properly guard initcall for multiimage
Lucas Stach
l.stach at pengutronix.de
Tue Dec 8 09:33:28 PST 2015
Make sure to not run this board specific initcall on any
other board.
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
arch/arm/boards/ccxmx53/board.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boards/ccxmx53/board.c b/arch/arm/boards/ccxmx53/board.c
index 0031aed772e4..9d81cd80a373 100644
--- a/arch/arm/boards/ccxmx53/board.c
+++ b/arch/arm/boards/ccxmx53/board.c
@@ -85,6 +85,9 @@ static int ccwmx53_devices_init(void)
u8 hwid[6] = {0};
char manloc = 0;
+ if (!of_machine_is_compatible("digi,imx53-ccxmx53"))
+ return 0;
+
if ((imx_iim_read(1, 9, hwid, sizeof(hwid)) != sizeof(hwid)) ||
(hwid[0] < 0x02) ||
(hwid[0] >= ARRAY_SIZE(ccwmx53_ids))) {
--
2.6.2
More information about the barebox
mailing list