diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-10-20 16:03:15 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-10-27 10:38:28 +0530 |
commit | 47efcbcb340cca5d3b3d515964f09e1fec599a29 (patch) | |
tree | 1fcb116a5f345157325d0ed7a996547fc599f776 /drivers/opp | |
parent | 1f6620f87006dc02c608466cd990778aaadf386a (diff) | |
download | linux-47efcbcb340cca5d3b3d515964f09e1fec599a29.tar.gz linux-47efcbcb340cca5d3b3d515964f09e1fec599a29.tar.bz2 linux-47efcbcb340cca5d3b3d515964f09e1fec599a29.zip |
opp: Fix early exit from dev_pm_opp_register_set_opp_helper()
We returned earlier by mistake even when there were no failures. Fix it.
Fixes: dd461cd9183f ("opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.com>
Diffstat (limited to 'drivers/opp')
-rw-r--r-- | drivers/opp/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 2483e765318a..4ac4e7ce6b8b 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -1930,7 +1930,7 @@ struct opp_table *dev_pm_opp_register_set_opp_helper(struct device *dev, return ERR_PTR(-EINVAL); opp_table = dev_pm_opp_get_opp_table(dev); - if (!IS_ERR(opp_table)) + if (IS_ERR(opp_table)) return opp_table; /* This should be called before OPPs are initialized */ |