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)
commit5aff3a8b20c54888e199e863744848007f1f4120
tree507c5e74cce81ad18734199a9d3516b4c82381f8
parent08aed2f6fb09c9f8efc9258c152072ed614db226
regulator: core: Check for failed voltage sets before checking for delay

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>
drivers/regulator/core.c