iio: adc: mxs-lradc: Disable the clock on probe failure
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 4 Oct 2014 11:50:21 +0000 (08:50 -0300)
committerJonathan Cameron <jic23@kernel.org>
Wed, 5 Nov 2014 18:33:44 +0000 (18:33 +0000)
commit4748119f1889b4ce96c84831ad0581598081b46f
tree84fe13a1b9ae136ff18bdeffa65ded9f2c3d18a8
parentc6b4cac2d9cbe7891260b55b2871d269d89d1ae7
iio: adc: mxs-lradc: Disable the clock on probe failure

We should disable lradc->clk in the case of errors in the probe function.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: <Stable@vger.kernel.org>
drivers/staging/iio/adc/mxs-lradc.c