提交 fa6fa663 编写于 作者: V Viresh Kumar 提交者: Rafael J. Wysocki

cpufreq: kirkwood: use cpufreq_generic_init()

Use generic cpufreq_generic_init() routine instead of replicating the same code
here.
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 17922ddd
...@@ -120,10 +120,7 @@ static int kirkwood_cpufreq_target(struct cpufreq_policy *policy, ...@@ -120,10 +120,7 @@ static int kirkwood_cpufreq_target(struct cpufreq_policy *policy,
/* Module init and exit code */ /* Module init and exit code */
static int kirkwood_cpufreq_cpu_init(struct cpufreq_policy *policy) static int kirkwood_cpufreq_cpu_init(struct cpufreq_policy *policy)
{ {
/* cpuinfo and default policy values */ return cpufreq_generic_init(policy, kirkwood_freq_table, 5000);
policy->cpuinfo.transition_latency = 5000; /* 5uS */
return cpufreq_table_validate_and_show(policy, kirkwood_freq_table);
} }
static struct cpufreq_driver kirkwood_cpufreq_driver = { static struct cpufreq_driver kirkwood_cpufreq_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册