aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/s3c2416-cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/s3c2416-cpufreq.c')
-rw-r--r--drivers/cpufreq/s3c2416-cpufreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpufreq/s3c2416-cpufreq.c b/drivers/cpufreq/s3c2416-cpufreq.c
index 4f1881eee3f1..e35865af96e2 100644
--- a/drivers/cpufreq/s3c2416-cpufreq.c
+++ b/drivers/cpufreq/s3c2416-cpufreq.c
@@ -244,7 +244,7 @@ static int s3c2416_cpufreq_set_target(struct cpufreq_policy *policy,
244 if (ret != 0) 244 if (ret != 0)
245 goto out; 245 goto out;
246 246
247 idx = s3c_freq->freq_table[i].index; 247 idx = s3c_freq->freq_table[i].driver_data;
248 248
249 if (idx == SOURCE_HCLK) 249 if (idx == SOURCE_HCLK)
250 to_dvs = 1; 250 to_dvs = 1;
@@ -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);