diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-03 21:49:57 +0400 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-09-22 16:32:41 +0400 |
commit | 9a2372fa7a403ba327873d0208a619d781a8a150 (patch) | |
tree | a9b3b932420563fdebc9be6f7451aefb1df7fb6f /include/linux/regulator | |
parent | 9332546fe88fa88bf6a7d9b1dce53ff5d314934e (diff) | |
download | linux-9a2372fa7a403ba327873d0208a619d781a8a150.tar.xz |
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 'include/linux/regulator')
0 files changed, 0 insertions, 0 deletions