aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/pcf50633-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-08-03 13:49:57 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2009-09-22 08:32:41 -0400
commit9a2372fa7a403ba327873d0208a619d781a8a150 (patch)
treea9b3b932420563fdebc9be6f7451aefb1df7fb6f /drivers/regulator/pcf50633-regulator.c
parent9332546fe88fa88bf6a7d9b1dce53ff5d314934e (diff)
regulator: regulator_enable() permission checking
The regulator_enable() code wasn't actually checking that the machine constraints had given permission to enable the regulator. Add code to do that, but only if the regulator is not already on due to something like always_on or being left on at startup since in those cases there's no physical change being introduced and the constraint wouldn't make any sense. Also add matching code for disable(). We need to do less there since either regulator_enable() should have succeeded first or the board setup makes no sense. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/pcf50633-regulator.c')
0 files changed, 0 insertions, 0 deletions