mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 06/10] ARM: i.MX51: skip devices register when devicetree is present
Date: Tue, 21 May 2013 11:57:43 +0200	[thread overview]
Message-ID: <1369130267-8094-7-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1369130267-8094-1-git-send-email-s.hauer@pengutronix.de>

When we have a devicetree, do not register the platform devices.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/mach-imx/imx51.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-imx/imx51.c b/arch/arm/mach-imx/imx51.c
index 54d99a4..0766a21 100644
--- a/arch/arm/mach-imx/imx51.c
+++ b/arch/arm/mach-imx/imx51.c
@@ -58,6 +58,9 @@ static int imx51_init(void)
 	imx51_silicon_revision();
 	imx51_boot_save_loc((void *)MX51_SRC_BASE_ADDR);
 
+	if (of_get_root_node())
+		return 0;
+
 	add_generic_device("imx_iim", 0, NULL, MX51_IIM_BASE_ADDR, SZ_4K,
 			IORESOURCE_MEM, NULL);
 
-- 
1.8.2.rc2


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

  parent reply	other threads:[~2013-05-21  9:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  9:57 [PATCH] move the first i.MX board over to devicetree Sascha Hauer
2013-05-21  9:57 ` [PATCH 01/10] ARM: i.MX: remove unused .mac_addr_base in iim Sascha Hauer
2013-05-21  9:57 ` [PATCH 02/10] ARM: i.MX: iim: Add devicetree probe support Sascha Hauer
2013-05-21  9:57 ` [PATCH 03/10] ARM: i.MX51: Add devicetree files Sascha Hauer
2013-05-21  9:57 ` [PATCH 04/10] ARM: i.MX51: Add IIM devicetree node Sascha Hauer
2013-05-21  9:57 ` [PATCH 05/10] ARM: i.MX51: Fixup fec pads in dts Sascha Hauer
2013-05-21  9:57 ` Sascha Hauer [this message]
2013-05-21  9:57 ` [PATCH 07/10] ARM: i.MX51 babbage: Add spi-cs-high property to pmic Sascha Hauer
2013-05-21  9:57 ` [PATCH 08/10] ARM: i.MX51 babbage: provide MAC adress in devicetree Sascha Hauer
2013-05-21 15:22   ` Alexander Shiyan
2013-05-21 17:53     ` Sascha Hauer
2013-05-21  9:57 ` [PATCH 09/10] ARM: i.MX51 babbage: Add phy reset gpio to dts Sascha Hauer
2013-05-21  9:57 ` [PATCH 10/10] ARM: i.MX51 babbage: switch to devicetree 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=1369130267-8094-7-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@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