aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-09-16 09:26:22 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-09-30 14:18:43 -0400
commit05b1621cb5134b89b6ab36e9b82bea32283c7c50 (patch)
treecb5f5ac6b520d735fae2aafe5e18779e251a7b1b
parentf71123522468805b3b4fe510172b7a46e046d89a (diff)
cpufreq: maple: use cpufreq_table_validate_and_show()
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.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/maple-cpufreq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c
index 6168d77b296d..b3fb661b2b56 100644
--- a/drivers/cpufreq/maple-cpufreq.c
+++ b/drivers/cpufreq/maple-cpufreq.c
@@ -181,10 +181,8 @@ static int maple_cpufreq_cpu_init(struct cpufreq_policy *policy)
181 * cpufreq core if in the secondary policy we tell it that 181 * cpufreq core if in the secondary policy we tell it that
182 * it actually must be one policy together with all others. */ 182 * it actually must be one policy together with all others. */
183 cpumask_setall(policy->cpus); 183 cpumask_setall(policy->cpus);
184 cpufreq_frequency_table_get_attr(maple_cpu_freqs, policy->cpu);
185 184
186 return cpufreq_frequency_table_cpuinfo(policy, 185 return cpufreq_table_validate_and_show(policy, maple_cpu_freqs);
187 maple_cpu_freqs);
188} 186}
189 187
190 188