regulator: core: Check for failed voltage sets before checking for delay
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Jun 2012 10:16:58 +0000 (11:16 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Jun 2012 10:53:35 +0000 (11:53 +0100)
There is no need to consider waiting for the voltage to ramp if we
didn't manage to set it and looking at the return value is going to be
cheaper than is_enabled().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found