9
0
Fork 0

ARM: i.MX51: skip devices register when devicetree is present

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

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-05-20 16:35:55 +02:00
parent 04fdd75d8a
commit b276cf0ab6
1 changed files with 3 additions and 0 deletions

View File

@ -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);