|
@@ -91,7 +91,7 @@ static int setup_freqs_table(struct cpufreq_policy *policy,
|
|
struct pxa3xx_freq_info *freqs, int num)
|
|
struct pxa3xx_freq_info *freqs, int num)
|
|
{
|
|
{
|
|
struct cpufreq_frequency_table *table;
|
|
struct cpufreq_frequency_table *table;
|
|
- int i, ret;
|
|
|
|
|
|
+ int i;
|
|
|
|
|
|
table = kzalloc((num + 1) * sizeof(*table), GFP_KERNEL);
|
|
table = kzalloc((num + 1) * sizeof(*table), GFP_KERNEL);
|
|
if (table == NULL)
|
|
if (table == NULL)
|
|
@@ -108,11 +108,7 @@ static int setup_freqs_table(struct cpufreq_policy *policy,
|
|
pxa3xx_freqs_num = num;
|
|
pxa3xx_freqs_num = num;
|
|
pxa3xx_freqs_table = table;
|
|
pxa3xx_freqs_table = table;
|
|
|
|
|
|
- ret = cpufreq_frequency_table_cpuinfo(policy, table);
|
|
|
|
- if (!ret)
|
|
|
|
- cpufreq_frequency_table_get_attr(table, policy->cpu);
|
|
|
|
-
|
|
|
|
- return ret;
|
|
|
|
|
|
+ return cpufreq_table_validate_and_show(policy, table);
|
|
}
|
|
}
|
|
|
|
|
|
static void __update_core_freq(struct pxa3xx_freq_info *info)
|
|
static void __update_core_freq(struct pxa3xx_freq_info *info)
|