Преглед изворни кода

ARM: omap2+: skip device build from platform code for dt

For SOCs with dt enabled, device should be build through device tree.
Prevent device build call from platform code, if device tree is
enabled.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Sourav Poddar пре 11 година
родитељ
комит
8ed43df176
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      arch/arm/mach-omap2/hdq1w.c

+ 2 - 0
arch/arm/mach-omap2/hdq1w.c

@@ -76,6 +76,7 @@ int omap_hdq1w_reset(struct omap_hwmod *oh)
 	return 0;
 	return 0;
 }
 }
 
 
+#ifndef CONFIG_OF
 static int __init omap_init_hdq(void)
 static int __init omap_init_hdq(void)
 {
 {
 	int id = -1;
 	int id = -1;
@@ -95,3 +96,4 @@ static int __init omap_init_hdq(void)
 	return 0;
 	return 0;
 }
 }
 omap_arch_initcall(omap_init_hdq);
 omap_arch_initcall(omap_init_hdq);
+#endif