diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-09-16 18:56:28 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 20:18:43 +0200 |
commit | 6b4147db3de33b49a5c6a88736e9322936672dc4 (patch) | |
tree | 38506f1a4ac66e4edf9e96dc3da591494b0bd0b1 /drivers/cpufreq/ppc_cbe_cpufreq.c | |
parent | b147405aa8e568750bfa99501c7fa831edef47c9 (diff) | |
download | linux-stable-6b4147db3de33b49a5c6a88736e9322936672dc4.tar.gz linux-stable-6b4147db3de33b49a5c6a88736e9322936672dc4.tar.bz2 linux-stable-6b4147db3de33b49a5c6a88736e9322936672dc4.zip |
cpufreq: ppc: 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().
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/ppc_cbe_cpufreq.c')
-rw-r--r-- | drivers/cpufreq/ppc_cbe_cpufreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/ppc_cbe_cpufreq.c b/drivers/cpufreq/ppc_cbe_cpufreq.c index 2e448f0bbdc5..6c5be63ce918 100644 --- a/drivers/cpufreq/ppc_cbe_cpufreq.c +++ b/drivers/cpufreq/ppc_cbe_cpufreq.c @@ -123,11 +123,9 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy) cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu)); #endif - cpufreq_frequency_table_get_attr(cbe_freqs, policy->cpu); - /* this ensures that policy->cpuinfo_min * and policy->cpuinfo_max are set correctly */ - return cpufreq_frequency_table_cpuinfo(policy, cbe_freqs); + return cpufreq_table_validate_and_show(policy, cbe_freqs); } static int cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy) |