aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2013-06-22 19:08:25 -0400
committerViresh Kumar <viresh.kumar@linaro.org>2013-06-24 01:52:33 -0400
commit166b9addd83aaf6eb22d9db7dc015f81913c9a0e (patch)
tree9ceadd7839c8656738a95562e46b0fe8da45284f /drivers/cpufreq
parent9e895ace5d82df8929b16f58e9f515f6d54ab82d (diff)
cpufreq: s3c2416: fix forgotten driver_data conversions
Commit 5070158804b5 (cpufreq: rename index as driver_data in cpufreq_frequency_table) renamed the index field to driver_data. But it seems some uses in the s3c2416 driver were forgotten. So convert the last index users to read driver_data. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/s3c2416-cpufreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/s3c2416-cpufreq.c b/drivers/cpufreq/s3c2416-cpufreq.c
index 4f1881eee3f1..f1233143e3e3 100644
--- a/drivers/cpufreq/s3c2416-cpufreq.c
+++ b/drivers/cpufreq/s3c2416-cpufreq.c
@@ -312,7 +312,7 @@ static void __init s3c2416_cpufreq_cfg_regulator(struct s3c2416_data *s3c_freq)
312 if (freq->frequency == CPUFREQ_ENTRY_INVALID) 312 if (freq->frequency == CPUFREQ_ENTRY_INVALID)
313 continue; 313 continue;
314 314
315 dvfs = &s3c2416_dvfs_table[freq->index]; 315 dvfs = &s3c2416_dvfs_table[freq->driver_data];
316 found = 0; 316 found = 0;
317 317
318 /* Check only the min-voltage, more is always ok on S3C2416 */ 318 /* Check only the min-voltage, more is always ok on S3C2416 */
@@ -462,7 +462,7 @@ static int __init s3c2416_cpufreq_driver_init(struct cpufreq_policy *policy)
462 freq = s3c_freq->freq_table; 462 freq = s3c_freq->freq_table;
463 while (freq->frequency != CPUFREQ_TABLE_END) { 463 while (freq->frequency != CPUFREQ_TABLE_END) {
464 /* special handling for dvs mode */ 464 /* special handling for dvs mode */
465 if (freq->index == 0) { 465 if (freq->driver_data == 0) {
466 if (!s3c_freq->hclk) { 466 if (!s3c_freq->hclk) {
467 pr_debug("cpufreq: %dkHz unsupported as it would need unavailable dvs mode\n", 467 pr_debug("cpufreq: %dkHz unsupported as it would need unavailable dvs mode\n",
468 freq->frequency); 468 freq->frequency);