]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: twl: remap has no meaning for 6030
authorSaquib Herman <saquib@ti.com>
Fri, 1 Apr 2011 04:52:43 +0000 (10:22 +0530)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 27 May 2011 09:34:36 +0000 (10:34 +0100)
commit2bee980a5abd596e1819f007dc4ab9f8797086a4
tree3331185ef92a5850ae1c523b8de1fc5cf02ac96e
parent2ebb629a622842d3deeb1b5beb9978cb7517140a
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