From: Viresh Kumar Date: Thu, 3 Oct 2013 14:58:45 +0000 (+0530) Subject: cpufreq: imx6q: don't initialize part of policy set by core X-Git-Tag: v3.13-rc3~6^2~1^3~23^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e62178cb9088edc002c848912f8610b159d57a8;p=kernel%2Fkernel-generic.git cpufreq: imx6q: don't initialize part of policy set by core Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: Shawn Guo Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index d839657..9d22dfa 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -163,7 +163,6 @@ static int imx6q_cpufreq_init(struct cpufreq_policy *policy) } policy->cpuinfo.transition_latency = transition_latency; - policy->cur = clk_get_rate(arm_clk) / 1000; cpumask_setall(policy->cpus); return 0;