author: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com> 2020-07-20 16:55:26 +0800
committer: Viresh Kumar <viresh.kumar@linaro.org> 2020-07-24 08:05:54 +0530
commit: 06a8a059e88bd73ee81a4ad19e97c04766f84def
parent: 0e510bf1b881e872a59033634e6226cd4c501e77
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
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;
}