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 2af75f8..c3fe894 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++;