[PATCH 06/10] ARM: i.MX51: skip devices register when devicetree is present
Sascha Hauer
s.hauer at pengutronix.de
Tue May 21 05:57:43 EDT 2013
When we have a devicetree, do not register the platform devices.
Signed-off-by: Sascha Hauer <s.hauer at 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
More information about the barebox
mailing list