cpufreq: blackfin: don't initialize part of policy set by core
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2013 14:58:34 +0000 (20:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:28 +0000 (00:50 +0200)
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 <realmz6@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/blackfin-cpufreq.c

index 48888cf23bbabbe78ca02b73b09aea71809fc1d8..0bc9e8c2c79bb1404a8539f6ff8760c5ab966727 100644 (file)
@@ -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);
 }