diff options
| -rw-r--r-- | drivers/regulator/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index ba28d29b66d2..476661117930 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
| @@ -2322,6 +2322,10 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev, | |||
| 2322 | regulator_list_voltage_linear) | 2322 | regulator_list_voltage_linear) |
| 2323 | ret = regulator_map_voltage_linear(rdev, | 2323 | ret = regulator_map_voltage_linear(rdev, |
| 2324 | min_uV, max_uV); | 2324 | min_uV, max_uV); |
| 2325 | else if (rdev->desc->ops->list_voltage == | ||
| 2326 | regulator_list_voltage_linear_range) | ||
| 2327 | ret = regulator_map_voltage_linear_range(rdev, | ||
| 2328 | min_uV, max_uV); | ||
| 2325 | else | 2329 | else |
| 2326 | ret = regulator_map_voltage_iterate(rdev, | 2330 | ret = regulator_map_voltage_iterate(rdev, |
| 2327 | min_uV, max_uV); | 2331 | min_uV, max_uV); |
