diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-09-16 09:26:17 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-30 14:18:42 -0400 |
commit | bbe2c1703d493dddc07abc579f6da239a2317cfa (patch) | |
tree | d5a8dbf30ca7dade740456ac89c8fc77f2275926 | |
parent | bc574ce9acb476cdd6622c196a81685b8e907de5 (diff) |
cpufreq: ia64-acpi: 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: Tony Luck <tony.luck@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/ia64-acpi-cpufreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cpufreq/ia64-acpi-cpufreq.c b/drivers/cpufreq/ia64-acpi-cpufreq.c index 3e14f0317175..6cfad5193d3b 100644 --- a/drivers/cpufreq/ia64-acpi-cpufreq.c +++ b/drivers/cpufreq/ia64-acpi-cpufreq.c | |||
@@ -335,7 +335,7 @@ acpi_cpufreq_cpu_init ( | |||
335 | } | 335 | } |
336 | } | 336 | } |
337 | 337 | ||
338 | result = cpufreq_frequency_table_cpuinfo(policy, data->freq_table); | 338 | result = cpufreq_table_validate_and_show(policy, data->freq_table); |
339 | if (result) { | 339 | if (result) { |
340 | goto err_freqfree; | 340 | goto err_freqfree; |
341 | } | 341 | } |
@@ -356,8 +356,6 @@ acpi_cpufreq_cpu_init ( | |||
356 | (u32) data->acpi_data.states[i].status, | 356 | (u32) data->acpi_data.states[i].status, |
357 | (u32) data->acpi_data.states[i].control); | 357 | (u32) data->acpi_data.states[i].control); |
358 | 358 | ||
359 | cpufreq_frequency_table_get_attr(data->freq_table, policy->cpu); | ||
360 | |||
361 | /* the first call to ->target() should result in us actually | 359 | /* the first call to ->target() should result in us actually |
362 | * writing something to the appropriate registers. */ | 360 | * writing something to the appropriate registers. */ |
363 | data->resume = 1; | 361 | data->resume = 1; |