|
@@ -2439,9 +2439,8 @@ static int _regulator_do_set_voltage(struct regulator_dev *rdev,
|
|
|
}
|
|
|
|
|
|
/* Call set_voltage_time_sel if successfully obtained old_selector */
|
|
|
- if (ret == 0 && !rdev->constraints->ramp_disable &&
|
|
|
- _regulator_is_enabled(rdev) && old_selector >= 0 &&
|
|
|
- old_selector != selector && rdev->desc->ops->set_voltage_time_sel) {
|
|
|
+ if (ret == 0 && !rdev->constraints->ramp_disable && old_selector >= 0
|
|
|
+ && old_selector != selector) {
|
|
|
|
|
|
delay = rdev->desc->ops->set_voltage_time_sel(rdev,
|
|
|
old_selector, selector);
|