summaryrefslogtreecommitdiffstats
path: root/drivers/opp
diff options
context:
space:
mode:
authorAndrew-sh.Cheng <andrew-sh.cheng@mediatek.com>2020-07-20 10:55:26 +0200
committerViresh Kumar <viresh.kumar@linaro.org>2020-07-24 04:35:54 +0200
commit06a8a059e88bd73ee81a4ad19e97c04766f84def (patch)
tree73da58311031f231443cb3ca579a4866735a588d /drivers/opp
parentopp: ti-opp-supply: Replace HTTP links with HTTPS ones (diff)
downloadlinux-06a8a059e88bd73ee81a4ad19e97c04766f84def.tar.xz
linux-06a8a059e88bd73ee81a4ad19e97c04766f84def.zip
opp: Allow disabled OPPs in dev_pm_opp_get_freq()
Allow dev_pm_opp_get_freq() to work for disabled OPPs. Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com> [ Viresh: Massaged commit log ] Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp')
-rw-r--r--drivers/opp/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 864cf4c65fff..0c8c74a3c868 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -118,7 +118,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_get_voltage);
*/
unsigned long dev_pm_opp_get_freq(struct dev_pm_opp *opp)
{
- if (IS_ERR_OR_NULL(opp) || !opp->available) {
+ if (IS_ERR_OR_NULL(opp)) {
pr_err("%s: Invalid parameters\n", __func__);
return 0;
}