summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-10-03 20:28:38 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-16 00:50:29 +0200
commitb31c95d72d40b5b0cac318d17c69c69582b55a98 (patch)
tree17c4c17213e3cb039fee5c61cd4d48f4771a34da
parent0a7485e19d7dded0c8cd2e309b5ff72b6e8ab3ce (diff)
downloadlinux-stable-b31c95d72d40b5b0cac318d17c69c69582b55a98.tar.gz
linux-stable-b31c95d72d40b5b0cac318d17c69c69582b55a98.tar.bz2
linux-stable-b31c95d72d40b5b0cac318d17c69c69582b55a98.zip
cpufreq: davinci: 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: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/cpufreq/davinci-cpufreq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c
index f2286423665e..55cf09425db2 100644
--- a/drivers/cpufreq/davinci-cpufreq.c
+++ b/drivers/cpufreq/davinci-cpufreq.c
@@ -136,8 +136,6 @@ static int davinci_cpu_init(struct cpufreq_policy *policy)
return result;
}
- policy->cur = davinci_getspeed(0);
-
result = cpufreq_table_validate_and_show(policy, freq_table);
if (result) {
pr_err("%s: cpufreq_table_validate_and_show() failed",