diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-06-03 04:23:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-06-03 06:42:48 -0400 |
commit | 830583004e615a4637eacc77866b84908414d7a0 (patch) | |
tree | 4f687ba04f22cf4e0b5b0bc22cf329b2a251d3f7 /drivers/regulator/pwm-regulator.c | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) |
regulator: pwm: Drop unneeded pwm_enable() call
Now that the PWM regulator driver implements the ->enable/disable() hooks
we can remove the pwm_enable() call from pwm_regulator_set_voltage().
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/pwm-regulator.c')
-rw-r--r-- | drivers/regulator/pwm-regulator.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index fafa3488e960..ab3cc0235843 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c | |||
@@ -159,11 +159,6 @@ static int pwm_regulator_set_voltage(struct regulator_dev *rdev, | |||
159 | return ret; | 159 | return ret; |
160 | } | 160 | } |
161 | 161 | ||
162 | ret = pwm_enable(drvdata->pwm); | ||
163 | if (ret) { | ||
164 | dev_err(&rdev->dev, "Failed to enable PWM: %d\n", ret); | ||
165 | return ret; | ||
166 | } | ||
167 | drvdata->volt_uV = min_uV; | 162 | drvdata->volt_uV = min_uV; |
168 | 163 | ||
169 | /* Delay required by PWM regulator to settle to the new voltage */ | 164 | /* Delay required by PWM regulator to settle to the new voltage */ |