regulator: core: Call set_voltage_time_sel() only when the regulator is on
authorAxel Lin <axel.lin@gmail.com>
Mon, 21 May 2012 01:37:52 +0000 (09:37 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 12:20:00 +0000 (13:20 +0100)
commit8b7485ef623b9171e5a58c67eef5912a27db5822
tree2da73c449c197ea61177b63d2a0b81bc44c89d4a
parentcffc9592fde309deafce12362e0a285108cfa3c8
regulator: core: Call set_voltage_time_sel() only when the regulator is on

If the regulator is not on, it won't take time setting new voltage.
So only call set_voltage_time_sel() to get the necessary delay when
the regulator is on.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/core.c