[PATCH 4.4.y-cip 12/23] cpufreq: dt: Unsupported OPPs are already disabled

Chen-Yu Tsai (Moxa) <wens@...>

From: Viresh Kumar <viresh.kumar@...>

commit 6def6ea75e6dea45f01a16ae3cfb5b5ce48dd5e9 upstream.

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@...>
Reviewed-by: Stephen Boyd <sboyd@...>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@...>
Signed-off-by: Chen-Yu Tsai (Moxa) <wens@...>
drivers/cpufreq/cpufreq-dt.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c
index 2af75f8088bbb..c3fe89461ff45 100644
--- a/drivers/cpufreq/cpufreq-dt.c
+++ b/drivers/cpufreq/cpufreq-dt.c
@@ -349,8 +349,6 @@ static int cpufreq_init(struct cpufreq_policy *policy=
min_uV =3D opp_uV;
if (opp_uV > max_uV)
max_uV =3D opp_uV;
- } else {
- dev_pm_opp_disable(cpu_dev, opp_freq);

Join cip-dev@lists.cip-project.org to automatically receive all group messages.