diff options
Diffstat (limited to 'drivers/base/power/opp/core.c')
-rw-r--r-- | drivers/base/power/opp/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c index ab711c2c3e00..d7cd4e265766 100644 --- a/drivers/base/power/opp/core.c +++ b/drivers/base/power/opp/core.c | |||
@@ -975,7 +975,7 @@ static bool _opp_supported_by_regulators(struct dev_pm_opp *opp, | |||
975 | { | 975 | { |
976 | struct regulator *reg = dev_opp->regulator; | 976 | struct regulator *reg = dev_opp->regulator; |
977 | 977 | ||
978 | if (!IS_ERR(reg) && | 978 | if (!IS_ERR_OR_NULL(reg) && |
979 | !regulator_is_supported_voltage(reg, opp->u_volt_min, | 979 | !regulator_is_supported_voltage(reg, opp->u_volt_min, |
980 | opp->u_volt_max)) { | 980 | opp->u_volt_max)) { |
981 | pr_warn("%s: OPP minuV: %lu maxuV: %lu, not supported by regulator\n", | 981 | pr_warn("%s: OPP minuV: %lu maxuV: %lu, not supported by regulator\n", |