cpufreq: s5pv210: use cpufreq_table_validate_and_show()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 16 Sep 2013 13:26:31 +0000 (18:56 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Sep 2013 18:18:44 +0000 (20:18 +0200)
Lets use cpufreq_table_validate_and_show() instead of calling
cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr().

Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/s5pv210-cpufreq.c

index 5c77570737937c298577303904baa60823fdce60..c266a7ef3a7bdb3b33cb680d5e56973d6610456a 100644 (file)
@@ -553,11 +553,9 @@ static int __init s5pv210_cpu_init(struct cpufreq_policy *policy)
 
        policy->cur = policy->min = policy->max = s5pv210_getspeed(0);
 
-       cpufreq_frequency_table_get_attr(s5pv210_freq_table, policy->cpu);
-
        policy->cpuinfo.transition_latency = 40000;
 
-       return cpufreq_frequency_table_cpuinfo(policy, s5pv210_freq_table);
+       return cpufreq_table_validate_and_show(policy, s5pv210_freq_table);
 
 out_dmc1:
        clk_put(dmc0_clk);