summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/qcom-cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/qcom-cpufreq.c')
-rw-r--r--drivers/cpufreq/qcom-cpufreq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq.c b/drivers/cpufreq/qcom-cpufreq.c
index 465198f34903..82861b1dbe46 100644
--- a/drivers/cpufreq/qcom-cpufreq.c
+++ b/drivers/cpufreq/qcom-cpufreq.c
@@ -143,8 +143,11 @@ static int msm_cpufreq_init(struct cpufreq_policy *policy)
if (cpu_clk[cpu] == cpu_clk[policy->cpu])
cpumask_set_cpu(cpu, policy->cpus);
- if (cpufreq_frequency_table_cpuinfo(policy, table))
+ ret = cpufreq_table_validate_and_show(policy, table);
+ if (ret) {
pr_err("cpufreq: failed to get policy min/max\n");
+ return ret;
+ }
cur_freq = clk_get_rate(cpu_clk[policy->cpu])/1000;
@@ -167,7 +170,6 @@ static int msm_cpufreq_init(struct cpufreq_policy *policy)
pr_debug("cpufreq: cpu%d init at %d switching to %d\n",
policy->cpu, cur_freq, table[index].frequency);
policy->cur = table[index].frequency;
- policy->freq_table = table;
return 0;
}