Skip to content

Commit 70969a8

Browse files
vireshkAlex Shi
authored andcommitted
cpufreq: dt: Unsupported OPPs are already disabled
The core already have a valid regulator set for the device opp and the unsupported OPPs are already disabled by the core. There is no need to repeat that in the user drivers, get rid of it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit 6def6ea75e6dea45f01a16ae3cfb5b5ce48dd5e9) Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 parent 99753a2 commit 70969a8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/cpufreq/cpufreq-dt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ static int cpufreq_init(struct cpufreq_policy *policy)
349349
min_uV = opp_uV;
350350
if (opp_uV > max_uV)
351351
max_uV = opp_uV;
352-
} else {
353-
dev_pm_opp_disable(cpu_dev, opp_freq);
354352
}
355353

356354
opp_freq++;

0 commit comments

Comments
 (0)