From: Viresh Kumar Date: Thu, 3 Oct 2013 14:58:35 +0000 (+0530) Subject: cpufreq: cpu0: don't initialize part of policy set by core too X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=179b889f7c5e6221a9fbf60cf4ef5e55be45cf34;p=openwrt%2Fstaging%2Fblogic.git cpufreq: cpu0: don't initialize part of policy set by core too 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(). Signed-off-by: Viresh Kumar Acked-by: Shawn Guo Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index c4a7514b1e15..3c09a265903f 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c @@ -131,7 +131,6 @@ static int cpu0_cpufreq_init(struct cpufreq_policy *policy) } policy->cpuinfo.transition_latency = transition_latency; - policy->cur = clk_get_rate(cpu_clk) / 1000; /* * The driver only supports the SMP configuartion where all processors