diff options
author | Mark Brown <broonie@kernel.org> | 2017-07-03 11:52:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-03 11:52:14 -0400 |
commit | 9ef6d2e0fac8fc9d899a9e07eda555792757b854 (patch) | |
tree | 4abec516a5199a75fb0d96b67be765c651c50f6c | |
parent | 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c (diff) | |
parent | 2c2874b191d54fbf9216524e629558eee89e1d20 (diff) |
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
-rw-r--r-- | drivers/regulator/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index c0d9ae8d0860..9fecbd4e3546 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -2938,7 +2938,8 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator, | |||
2938 | if (rdev->supply && | 2938 | if (rdev->supply && |
2939 | regulator_ops_is_valid(rdev->supply->rdev, | 2939 | regulator_ops_is_valid(rdev->supply->rdev, |
2940 | REGULATOR_CHANGE_VOLTAGE) && | 2940 | REGULATOR_CHANGE_VOLTAGE) && |
2941 | (rdev->desc->min_dropout_uV || !rdev->desc->ops->get_voltage)) { | 2941 | (rdev->desc->min_dropout_uV || !(rdev->desc->ops->get_voltage || |
2942 | rdev->desc->ops->get_voltage_sel))) { | ||
2942 | int current_supply_uV; | 2943 | int current_supply_uV; |
2943 | int selector; | 2944 | int selector; |
2944 | 2945 | ||