From: Viresh Kumar Date: Thu, 3 Oct 2013 14:58:34 +0000 (+0530) Subject: cpufreq: blackfin: don't initialize part of policy set by core X-Git-Tag: upstream/snapshot3+hdmi~3825^2~1^3~23^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49ad1eabb6b46bc9d5b4f6c21bf0a555f35905d5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git cpufreq: blackfin: 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: Steven Miao Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/blackfin-cpufreq.c b/drivers/cpufreq/blackfin-cpufreq.c index 48888cf..0bc9e8c 100644 --- a/drivers/cpufreq/blackfin-cpufreq.c +++ b/drivers/cpufreq/blackfin-cpufreq.c @@ -204,7 +204,6 @@ static int __bfin_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 50000; /* 50us assumed */ - policy->cur = cclk; return cpufreq_table_validate_and_show(policy, bfin_freq_table); }