From: Lucas Stach <l.stach@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM: imx53: vincell: guard board initcall
Date: Thu, 27 Aug 2015 10:59:14 +0200 [thread overview]
Message-ID: <1440665954-2994-1-git-send-email-l.stach@pengutronix.de> (raw)
Make sure that the initcall only executes on the expected board.
Signed-off-by: Lucas Stach <l.stach@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2015-08-27 8:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 8:59 Lucas Stach [this message]
2015-08-28 6:59 ` 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=1440665954-2994-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