diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-09-16 15:26:27 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 20:18:43 +0200 |
commit | b147405aa8e568750bfa99501c7fa831edef47c9 (patch) | |
tree | 2b62dba41bef71f1bd48a005eaa402a597f43aa3 /drivers/cpufreq/powernow-k7.c | |
parent | cpufreq: pmac: use cpufreq_table_validate_and_show() (diff) | |
download | linux-b147405aa8e568750bfa99501c7fa831edef47c9.tar.xz linux-b147405aa8e568750bfa99501c7fa831edef47c9.zip |
cpufreq: powernow: 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/powernow-k7.c')
-rw-r--r-- | drivers/cpufreq/powernow-k7.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c index 14ce480be8ab..c863c13dfcc8 100644 --- a/drivers/cpufreq/powernow-k7.c +++ b/drivers/cpufreq/powernow-k7.c @@ -680,9 +680,7 @@ static int powernow_cpu_init(struct cpufreq_policy *policy) policy->cur = powernow_get(0); - cpufreq_frequency_table_get_attr(powernow_table, policy->cpu); - - return cpufreq_frequency_table_cpuinfo(policy, powernow_table); + return cpufreq_table_validate_and_show(policy, powernow_table); } static int powernow_cpu_exit(struct cpufreq_policy *policy) |