aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-10-03 10:59:16 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-15 18:50:34 -0400
commite0b2da585f286ffa86cd24c0df1c1440d9dae19f (patch)
tree4d3deebf2e5df794e30fff258b7aa050d9c8cacf /drivers/cpufreq
parentfa6fa663b61929fbd9a83765aaa1996d65246167 (diff)
cpufreq: loongson2: use cpufreq_generic_init()
Use generic cpufreq_generic_init() routine instead of replicating the same code here. This driver wasn't setting transition_latency and so is getting set to 0 by default. Lets mark it explicitly by calling the generic routine with transition_latency as 0. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/loongson2_cpufreq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c
index dd4f3e46f724..2c8ec8e06449 100644
--- a/drivers/cpufreq/loongson2_cpufreq.c
+++ b/drivers/cpufreq/loongson2_cpufreq.c
@@ -131,8 +131,7 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy)
131 return ret; 131 return ret;
132 } 132 }
133 133
134 return cpufreq_table_validate_and_show(policy, 134 return cpufreq_generic_init(policy, &loongson2_clockmod_table[0], 0);
135 &loongson2_clockmod_table[0]);
136} 135}
137 136
138static int loongson2_cpufreq_exit(struct cpufreq_policy *policy) 137static int loongson2_cpufreq_exit(struct cpufreq_policy *policy)