aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/pasemi-cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/pasemi-cpufreq.c')
-rw-r--r--drivers/cpufreq/pasemi-cpufreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c
index b257fc7d5204..75dfbd2a58ea 100644
--- a/drivers/cpufreq/pasemi-cpufreq.c
+++ b/drivers/cpufreq/pasemi-cpufreq.c
@@ -139,7 +139,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
139 struct cpufreq_frequency_table *pos; 139 struct cpufreq_frequency_table *pos;
140 const u32 *max_freqp; 140 const u32 *max_freqp;
141 u32 max_freq; 141 u32 max_freq;
142 int cur_astate; 142 int cur_astate, idx;
143 struct resource res; 143 struct resource res;
144 struct device_node *cpu, *dn; 144 struct device_node *cpu, *dn;
145 int err = -ENODEV; 145 int err = -ENODEV;
@@ -198,9 +198,9 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
198 pr_debug("initializing frequency table\n"); 198 pr_debug("initializing frequency table\n");
199 199
200 /* initialize frequency table */ 200 /* initialize frequency table */
201 cpufreq_for_each_entry(pos, pas_freqs) { 201 cpufreq_for_each_entry_idx(pos, pas_freqs, idx) {
202 pos->frequency = get_astate_freq(pos->driver_data) * 100000; 202 pos->frequency = get_astate_freq(pos->driver_data) * 100000;
203 pr_debug("%d: %d\n", (int)(pos - pas_freqs), pos->frequency); 203 pr_debug("%d: %d\n", idx, pos->frequency);
204 } 204 }
205 205
206 cur_astate = get_cur_astate(policy->cpu); 206 cur_astate = get_cur_astate(policy->cpu);