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)
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>

No differences found