regulator: Allow boot_on regulators to be disabled by clients
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Mar 2009 16:32:46 +0000 (16:32 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 31 Mar 2009 08:56:27 +0000 (09:56 +0100)
commitcacf90f24e80cec9334f98e0377149f943fe9f16
treeb492ea92394f9ba2accffa478bdadc50008998fb
parent221a7c7c9c88bf9d3ea4e191b35c7da709ca30b7
regulator: Allow boot_on regulators to be disabled by clients

Rather than incrementing the reference count for boot_on regulators
(which prevents them being disabled later on) simply force the
regulator to be enabled when applying the constraints. Previously
boot_on was essentially equivalent to always_on.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c
include/linux/regulator/machine.h