diff options
Diffstat (limited to 'drivers/cpufreq/pxa3xx-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/pxa3xx-cpufreq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/cpufreq/pxa3xx-cpufreq.c b/drivers/cpufreq/pxa3xx-cpufreq.c index 9c92ef032a9e..d26306fb00d2 100644 --- a/drivers/cpufreq/pxa3xx-cpufreq.c +++ b/drivers/cpufreq/pxa3xx-cpufreq.c | |||
@@ -213,10 +213,12 @@ static int pxa3xx_cpufreq_init(struct cpufreq_policy *policy) | |||
213 | policy->cur = policy->min = policy->max; | 213 | policy->cur = policy->min = policy->max; |
214 | 214 | ||
215 | if (cpu_is_pxa300() || cpu_is_pxa310()) | 215 | if (cpu_is_pxa300() || cpu_is_pxa310()) |
216 | ret = setup_freqs_table(policy, ARRAY_AND_SIZE(pxa300_freqs)); | 216 | ret = setup_freqs_table(policy, pxa300_freqs, |
217 | ARRAY_SIZE(pxa300_freqs)); | ||
217 | 218 | ||
218 | if (cpu_is_pxa320()) | 219 | if (cpu_is_pxa320()) |
219 | ret = setup_freqs_table(policy, ARRAY_AND_SIZE(pxa320_freqs)); | 220 | ret = setup_freqs_table(policy, pxa320_freqs, |
221 | ARRAY_SIZE(pxa320_freqs)); | ||
220 | 222 | ||
221 | if (ret) { | 223 | if (ret) { |
222 | pr_err("failed to setup frequency table\n"); | 224 | pr_err("failed to setup frequency table\n"); |