]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/cpufreq/ppc_cbe_cpufreq.c
cpufreq: ppc: use cpufreq_table_validate_and_show()
[mirror_ubuntu-artful-kernel.git] / drivers / cpufreq / ppc_cbe_cpufreq.c
index 2e448f0bbdc583465672e7ec40804f1d01467224..6c5be63ce91874e42b12b253170958a08454e11d 100644 (file)
@@ -123,11 +123,9 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
        cpumask_copy(policy->cpus, cpu_sibling_mask(policy->cpu));
 #endif
 
-       cpufreq_frequency_table_get_attr(cbe_freqs, policy->cpu);
-
        /* this ensures that policy->cpuinfo_min
         * and policy->cpuinfo_max are set correctly */
-       return cpufreq_frequency_table_cpuinfo(policy, cbe_freqs);
+       return cpufreq_table_validate_and_show(policy, cbe_freqs);
 }
 
 static int cbe_cpufreq_cpu_exit(struct cpufreq_policy *policy)