diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-09-16 09:26:38 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 14:18:44 -0400 |
commit | 5f3a2d39bb9dd4372c52fb2568c4520bcc91c8c4 (patch) | |
tree | eb44330f30376f82ad30a7ccdd2b4db80d1865c5 /drivers/cpufreq/speedstep-centrino.c | |
parent | 4a1fe2bfc9e49c48a166d0229e09d3069893a8fa (diff) |
cpufreq: speedstep: 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: David S. Miller <davem@davemloft.net>
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/speedstep-centrino.c')
-rw-r--r-- | drivers/cpufreq/speedstep-centrino.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/cpufreq/speedstep-centrino.c b/drivers/cpufreq/speedstep-centrino.c index f897d5105842..f180561c3635 100644 --- a/drivers/cpufreq/speedstep-centrino.c +++ b/drivers/cpufreq/speedstep-centrino.c | |||
@@ -345,7 +345,6 @@ static int centrino_cpu_init(struct cpufreq_policy *policy) | |||
345 | struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); | 345 | struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); |
346 | unsigned freq; | 346 | unsigned freq; |
347 | unsigned l, h; | 347 | unsigned l, h; |
348 | int ret; | ||
349 | int i; | 348 | int i; |
350 | 349 | ||
351 | /* Only Intel makes Enhanced Speedstep-capable CPUs */ | 350 | /* Only Intel makes Enhanced Speedstep-capable CPUs */ |
@@ -402,15 +401,8 @@ static int centrino_cpu_init(struct cpufreq_policy *policy) | |||
402 | 401 | ||
403 | pr_debug("centrino_cpu_init: cur=%dkHz\n", policy->cur); | 402 | pr_debug("centrino_cpu_init: cur=%dkHz\n", policy->cur); |
404 | 403 | ||
405 | ret = cpufreq_frequency_table_cpuinfo(policy, | 404 | return cpufreq_table_validate_and_show(policy, |
406 | per_cpu(centrino_model, policy->cpu)->op_points); | 405 | per_cpu(centrino_model, policy->cpu)->op_points); |
407 | if (ret) | ||
408 | return (ret); | ||
409 | |||
410 | cpufreq_frequency_table_get_attr( | ||
411 | per_cpu(centrino_model, policy->cpu)->op_points, policy->cpu); | ||
412 | |||
413 | return 0; | ||
414 | } | 406 | } |
415 | 407 | ||
416 | static int centrino_cpu_exit(struct cpufreq_policy *policy) | 408 | static int centrino_cpu_exit(struct cpufreq_policy *policy) |