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

Commit 2ee5f528 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

ARM: OMAP2+: Fix voltage scaling init for device tree



We are currently disabling the init of voltage scaling
for device tree. With the voltage scaling problems fixed
for omap3 in general, there's no need to disable the voltage
scaling init for device tree based booting.

Cc: Kevin Hilman <khilman@linaro.org>
Cc: Nishanth Menon <nm@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 327456a7
Loading
Loading
Loading
Loading
+12 −16
Original line number Diff line number Diff line
@@ -287,12 +287,10 @@ omap_postcore_initcall(omap2_common_pm_init);

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()) {
	if (of_have_populated_dt()) {
		omap3_twl_init();
		omap4_twl_init();
	}

	/* Init the voltage layer */
	omap_pmic_late_init();
@@ -305,8 +303,6 @@ int __init omap2_common_pm_late_init(void)
	/* Smartreflex device init */
	omap_devinit_smartreflex();

	}

	/* cpufreq dummy device instantiation */
	omap_init_cpufreq();