lkml.org 
[lkml]   [2016]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH V2 12/16] cpufreq: dt: Unsupported OPPs are already disabled
Date
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>
---
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 15637734986a..ca7a930ea283 100644
--- a/drivers/cpufreq/cpufreq-dt.c
+++ b/drivers/cpufreq/cpufreq-dt.c
@@ -373,8 +373,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++;
--
2.7.0.79.gdc08a19
\
 
 \ /
  Last update: 2016-01-28 09:41    [W:0.040 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site