iio: mxs-lradc: Fix the order of resources removal
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 3 Sep 2013 00:48:00 +0000 (01:48 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 8 Sep 2013 14:29:33 +0000 (15:29 +0100)
commita0ef6db7e0d83b8b9d9902c8df2240028d79b275
tree178bda0e5d85a02b5eea8275f9a67e63bf772f75
parente5e26dd5bb740c34c975e2ae059126ba3486a1ce
iio: mxs-lradc: Fix the order of resources removal

Fix the order of resources removal in the error path of mxs_lradc_probe()
and also in mxs_lradc_remove().

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