diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-09-11 12:26:18 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-09-16 11:32:34 +0300 |
commit | a5663c9b1e31c00e0bdfaf4d92eb51358fc3950f (patch) | |
tree | f00652e9807ceca56e4926ada69b10d6ac435084 /drivers/opp/core.c | |
parent | cb60e9602cce1593eb1e9cdc8ee562815078a354 (diff) | |
download | linux-a5663c9b1e31c00e0bdfaf4d92eb51358fc3950f.tar.xz |
opp: Allow opp-level to be set to 0
The DT bindings don't put such a constraint, nor should the kernel. It
is perfectly fine for opp-level to be set to 0, if we need to put the
performance state votes for a domain for a particular OPP.
Reported-by: Stephan Gerhold <stephan@gerhold.net>
Tested-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp/core.c')
-rw-r--r-- | drivers/opp/core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index e65174725a4d..8d047300d001 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -2109,9 +2109,6 @@ int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, int dest_pstate = -EINVAL; int i; - if (!pstate) - return 0; - /* * Normally the src_table will have the "required_opps" property set to * point to one of the OPPs in the dst_table, but in some cases the |