Skip to content

Commit 06a8a05

Browse files
Andrew-sh.Chengvireshk
authored andcommitted
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 <[email protected]> [ Viresh: Massaged commit log ] Signed-off-by: Viresh Kumar <[email protected]>
1 parent 0e510bf commit 06a8a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/opp/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_get_voltage);
118118
*/
119119
unsigned long dev_pm_opp_get_freq(struct dev_pm_opp *opp)
120120
{
121-
if (IS_ERR_OR_NULL(opp) || !opp->available) {
121+
if (IS_ERR_OR_NULL(opp)) {
122122
pr_err("%s: Invalid parameters\n", __func__);
123123
return 0;
124124
}

0 commit comments

Comments
 (0)