regulator: twl: remap has no meaning for 6030
authorSaquib Herman <saquib@ti.com>
Fri, 1 Apr 2011 04:52:43 +0000 (09:52 +0530)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:36 +0000 (10:34 +0100)
commit776dc923f5c9cd0eea61475ed61350e377ad98b5
tree3331185ef92a5850ae1c523b8de1fc5cf02ac96e
parent21657ebf868b9c7c6c0cab15a6797c3f1af64295
regulator: twl: remap has no meaning for 6030

TWL6030 does not have remap register. The current implementation
causes value of remap to be written to state register, accidentally
causing the regulators which are probed to be switched on as well.
This is wrong as regulators should be controllable based on calls
to enable/disable for TWL regulator framework. Further, the values
initialized make no sense as well. We hence remove this from the
initalizers and also write to remap register only if the TWL
is 4030.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Saquib Herman <saquib@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@vega.(none)>
drivers/regulator/twl-regulator.c