regulator: Set delay to 0 if set_voltage_time_sel callback returns error
authorAxel Lin <axel.lin@gmail.com>
Fri, 24 Feb 2012 15:13:19 +0000 (23:13 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 24 Feb 2012 15:21:47 +0000 (15:21 +0000)
commit073512336e6333ffcaabbb2b92f8e616db3a0789
tree280e7e61ca080acb02fa1d92403c2f85989f253d
parent247514344492a0cf602317d2089bab1301922624
regulator: Set delay to 0 if set_voltage_time_sel callback returns error

rdev->desc->ops->set_voltage_time_sel may return negative error code.
Set delay to 0 and also show warning if set_voltage_time_sel returns error.

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