iio: adc: vf610: Disable the regulator on error
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 3 Oct 2014 01:25:24 +0000 (22:25 -0300)
committerJonathan Cameron <jic23@kernel.org>
Sat, 4 Oct 2014 11:30:26 +0000 (12:30 +0100)
commit9da64c25ffefa60b969c64176098ae616219f759
treebcc82c4c2b4f495c7e4cda15d46ad52fa1687b6a
parent2e3d6675dc2f402d8b799b773324e60af3e2a325
iio: adc: vf610: Disable the regulator on error

If clk_prepare_enable() fails we should disable the regulator that was
previously enabled.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/vf610_adc.c