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>
Thu, 9 Oct 2014 20:02:51 +0000 (21:02 +0100)
commit75d7ed3b9e7cb79a3b0e1f417fb674d54b4fc668
treecaaca18cd67f7fa4e5dd3482b50a8152642eea3d
parent4250c90b30b8bf2a1a21122ba0484f8f351f152d
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