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

Commit 63ffdd9c authored by Patrick Daly's avatar Patrick Daly
Browse files

msm: clock-a7: Correct cpu clock reference count



The msm cpufreq driver requires that the reference count be 1 for devices
that have multiple cpus sharing the same clock.

Change-Id: I3f0e0121780f0365e04e3823e203f0cc85e838f5
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent ba8d5ef1
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ static int of_get_clk_src(struct platform_device *pdev, struct clk_src *parents)
static int clock_a7_probe(struct platform_device *pdev)
{
	struct resource *res;
	int speed_bin = 0, version = 0, rc, cpu;
	int speed_bin = 0, version = 0, rc;
	unsigned long rate, aux_rate;
	struct clk *aux_clk, *main_pll;
	char prop_name[] = "qcom,speedX-bin-vX";
@@ -362,10 +362,8 @@ static int clock_a7_probe(struct platform_device *pdev)
	 * that the clocks have already been prepared and enabled by the time
	 * they take over.
	 */
	for_each_online_cpu(cpu) {
	WARN(clk_prepare_enable(&a7ssmux.c),
			"Unable to turn on CPU%d clock", cpu);
	}
		"Unable to turn on CPU clock");
	return 0;
}