cpufreq: dt: Unsupported OPPs are already disabled
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 9 Feb 2016 05:00:44 +0000 (10:30 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Feb 2016 23:24:37 +0000 (00:24 +0100)
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>
drivers/cpufreq/cpufreq-dt.c

index 2af75f8088bbb02c3536d1cbc90f8dcf1d717d42..c3fe89461ff459358ec2fcccbab6050db9a78eab 100644 (file)
@@ -349,8 +349,6 @@ static int cpufreq_init(struct cpufreq_policy *policy)
                                        min_uV = opp_uV;
                                if (opp_uV > max_uV)
                                        max_uV = opp_uV;
-                       } else {
-                               dev_pm_opp_disable(cpu_dev, opp_freq);
                        }
 
                        opp_freq++;