OSDN Git Service

ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT
authorBenoit Cousson <b-cousson@ti.com>
Thu, 8 Dec 2011 15:47:39 +0000 (16:47 +0100)
committerBenoit Cousson <b-cousson@ti.com>
Thu, 16 Feb 2012 22:06:58 +0000 (23:06 +0100)
In the case of DT, the PMIC and SR initialization will be done using
a completely different mechanism.

Disable this part if a DT blob is available.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/mach-omap2/pm.c

index 1881fe9..ad4f693 100644 (file)
@@ -227,6 +227,14 @@ postcore_initcall(omap2_common_pm_init);
 
 static int __init omap2_common_pm_late_init(void)
 {
+       /*
+        * In the case of DT, the PMIC and SR initialization will be done using
+        * a completely different mechanism.
+        * Disable this part if a DT blob is available.
+        */
+       if (of_have_populated_dt())
+               return 0;
+
        /* Init the voltage layer */
        omap_pmic_late_init();
        omap_voltage_late_init();