b/drivers/cpufreq/arm_big_little.c
@@ -332,7 +332,7 @@ static int _get_cluster_clk_and_freq_table(struct device
*cpu_dev)
goto out;
}
- ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table[cluster]);
+ ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table[cluster],
0);
if (ret) {
dev_err(cpu_dev, "%s: failed to init cpufreq table, cpu: %d,
err: %d\n",
__func__, cpu_dev->id, ret);
@@ -158,7 +158,7 @@ static int cpu0_cpufreq_probe(struct platform_device
*pdev)
goto out_put_node;
}
- ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table);
+ ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table, 0);
if (ret) {
pr_err("failed to init cpufreq table: %d\n", ret);
goto out_put_node;
b/drivers/cpufreq/imx6q-cpufreq.c
@@ -212,7 +212,7 @@ static int imx6q_cpufreq_probe(struct platform_device
*pdev)
}
}
- ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table);
+ ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table, 0);
if (ret) {
dev_err(cpu_dev, "failed to init cpufreq table: %d\n", ret);
goto put_node;
@@ -119,7 +119,7 @@ static int omap_cpu_init(struct cpufreq_policy *policy)
return PTR_ERR(policy->clk);
if (!freq_table) {
- result = dev_pm_opp_init_cpufreq_table(mpu_dev,
&freq_table);
+ result = dev_pm_opp_init_cpufreq_table(mpu_dev, &freq_table,
0);
if (result) {
In dev_pm_opp_init_cpufreq_table, flags parameter is added to indicate descending order. If flags is zero, it is a ascending order. Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com> --- drivers/cpufreq/arm_big_little.c | 2 +- drivers/cpufreq/cpufreq-cpu0.c | 2 +- drivers/cpufreq/imx6q-cpufreq.c | 2 +- drivers/cpufreq/omap-cpufreq.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) dev_err(mpu_dev, "%s: cpu%d: failed creating freq table[%d]\n",