diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-09-16 18:56:20 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 20:18:42 +0200 |
commit | 30aa53412797a45b0b21da332e7a0fc6a74bb061 (patch) | |
tree | faee172580b0eda3f0da447513dc7d973692b48b /drivers/cpufreq/longhaul.c | |
parent | 6efbc777b9cf4af5efdd06e8365639cacbc65b7b (diff) | |
download | blackbird-obmc-linux-30aa53412797a45b0b21da332e7a0fc6a74bb061.tar.gz blackbird-obmc-linux-30aa53412797a45b0b21da332e7a0fc6a74bb061.zip |
cpufreq: longhaul: 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/longhaul.c')
-rw-r--r-- | drivers/cpufreq/longhaul.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c index 4ada1cccb052..70b66fda3cad 100644 --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c @@ -921,13 +921,7 @@ static int longhaul_cpu_init(struct cpufreq_policy *policy) policy->cpuinfo.transition_latency = 200000; /* nsec */ policy->cur = calc_speed(longhaul_get_cpu_mult()); - ret = cpufreq_frequency_table_cpuinfo(policy, longhaul_table); - if (ret) - return ret; - - cpufreq_frequency_table_get_attr(longhaul_table, policy->cpu); - - return 0; + return cpufreq_table_validate_and_show(policy, longhaul_table); } static int longhaul_cpu_exit(struct cpufreq_policy *policy) |