staging: iio: mxs-lradc: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 22 Jul 2013 11:02:00 +0000 (12:02 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:40:59 +0000 (18:40 +0100)
commit073c33d55242cf9d9b89a5f49e7b4ba952c81045
tree373f32694d16c15c8a777064c7a95ccf3bf1aef4
parenta8b168a15f8d7b1c6ee54f486e51490634abe18f
staging: iio: mxs-lradc: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c