projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a695a9
)
regulator: pwm: Drop unneeded pwm_enable() call
author
Boris Brezillon
<boris.brezillon@free-electrons.com>
Fri, 3 Jun 2016 08:23:00 +0000
(10:23 +0200)
committer
Mark Brown
<broonie@kernel.org>
Fri, 3 Jun 2016 10:42:48 +0000
(11:42 +0100)
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>
drivers/regulator/pwm-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/pwm-regulator.c
b/drivers/regulator/pwm-regulator.c
index
fafa348
..
ab3cc02
100644
(file)
--- 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,
return ret;
}
- ret = pwm_enable(drvdata->pwm);
- if (ret) {
- dev_err(&rdev->dev, "Failed to enable PWM: %d\n", ret);
- return ret;
- }
drvdata->volt_uV = min_uV;
/* Delay required by PWM regulator to settle to the new voltage */