summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cpufreq-dt.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-02-09 08:00:44 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-02-11 02:24:37 +0300
commit6def6ea75e6dea45f01a16ae3cfb5b5ce48dd5e9 (patch)
treee382e74c4eb9071b21eca97120d6f07c7cb7875a /drivers/cpufreq/cpufreq-dt.c
parent050794aaebbb9f2c2c50b340b6998273e7c64189 (diff)
downloadlinux-6def6ea75e6dea45f01a16ae3cfb5b5ce48dd5e9.tar.xz
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>
Diffstat (limited to 'drivers/cpufreq/cpufreq-dt.c')
-rw-r--r--drivers/cpufreq/cpufreq-dt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c
index 2af75f8088bb..c3fe89461ff4 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 = opp_uV;
if (opp_uV > max_uV)
max_uV = opp_uV;
- } else {
- dev_pm_opp_disable(cpu_dev, opp_freq);
}
opp_freq++;