diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-09-16 09:26:30 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 14:18:44 -0400 |
commit | 4974b8ea4add1ae5e3123fe734deb12859da725b (patch) | |
tree | ea1d4417b8928b5ed02402c1fbe681bd3440e3f5 /drivers/cpufreq/s3c2416-cpufreq.c | |
parent | 15cc921b97f1c0aac38edfe7c796bfb5d5f4676b (diff) |
cpufreq: s3cx4xx: 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: Kukjin Kim <kgene.kim@samsung.com>
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/s3c2416-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/s3c2416-cpufreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/s3c2416-cpufreq.c b/drivers/cpufreq/s3c2416-cpufreq.c index 22dcb81ef9d0..a7a4c612d156 100644 --- a/drivers/cpufreq/s3c2416-cpufreq.c +++ b/drivers/cpufreq/s3c2416-cpufreq.c | |||
@@ -494,12 +494,10 @@ static int __init s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy) | |||
494 | policy->cpuinfo.transition_latency = (500 * 1000) + | 494 | policy->cpuinfo.transition_latency = (500 * 1000) + |
495 | s3c_freq->regulator_latency; | 495 | s3c_freq->regulator_latency; |
496 | 496 | ||
497 | ret = cpufreq_frequency_table_cpuinfo(policy, s3c_freq->freq_table); | 497 | ret = cpufreq_table_validate_and_show(policy, s3c_freq->freq_table); |
498 | if (ret) | 498 | if (ret) |
499 | goto err_freq_table; | 499 | goto err_freq_table; |
500 | 500 | ||
501 | cpufreq_frequency_table_get_attr(s3c_freq->freq_table, 0); | ||
502 | |||
503 | register_reboot_notifier(&s3c2416_cpufreq_reboot_notifier); | 501 | register_reboot_notifier(&s3c2416_cpufreq_reboot_notifier); |
504 | 502 | ||
505 | return 0; | 503 | return 0; |