mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: ccxmx53: properly guard initcall for multiimage
@ 2015-12-08 17:33 Lucas Stach
  2015-12-08 17:33 ` [PATCH 2/2] MCI: init device_node for MCI mainarea cdev Lucas Stach
  2015-12-10  7:52 ` [PATCH 1/2] ARM: ccxmx53: properly guard initcall for multiimage Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Lucas Stach @ 2015-12-08 17:33 UTC (permalink / raw)
  To: barebox

Make sure to not run this board specific initcall on any
other board.

Signed-off-by: Lucas Stach <l.stach@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-10  7:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08 17:33 [PATCH 1/2] ARM: ccxmx53: properly guard initcall for multiimage Lucas Stach
2015-12-08 17:33 ` [PATCH 2/2] MCI: init device_node for MCI mainarea cdev Lucas Stach
2015-12-10  7:52 ` [PATCH 1/2] ARM: ccxmx53: properly guard initcall for multiimage Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox