From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/2] ARM: ccxmx53: properly guard initcall for multiimage
Date: Tue, 8 Dec 2015 18:33:28 +0100 [thread overview]
Message-ID: <1449596009-26508-1-git-send-email-l.stach@pengutronix.de> (raw)
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
next reply other threads:[~2015-12-08 17:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 17:33 Lucas Stach [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1449596009-26508-1-git-send-email-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox