Skip to content

Commit

Permalink
ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benoit Cousson committed Feb 16, 2012
1 parent 5dc06b7 commit 506d81e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/mach-omap2/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 506d81e

Please sign in to comment.