Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 506d81ef authored by Benoit Cousson's avatar Benoit Cousson
Browse files

ARM: OMAP2+: pm: Do not init statically the SR and voltage layer with DT



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: default avatarBenoit Cousson <b-cousson@ti.com>
Acked-by: default avatarKevin Hilman <khilman@ti.com>
Acked-by: default avatarRob Herring <rob.herring@calxeda.com>
Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 5dc06b7e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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();