regulator: palmas: clear sleep bits if not selected
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 17 Apr 2013 09:43:11 +0000 (15:13 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 14:03:06 +0000 (15:03 +0100)
commit30590d04808c03fb29341e1c6f721644b2f07650
tree38d0f2752621ad336ddf282741d01a3838816be0
parent504382c99d346c7443664dbc21b61101ccce078d
regulator: palmas: clear sleep bits if not selected

Clear the sleep/warm reset bits when it is not selected through
regulator platform data. This will make sure that configuration
is inline with the platform data regardless of boot/POR
configuration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/palmas-regulator.c