iio: adc: ti_am335x_adc: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 23 Jul 2013 08:46:00 +0000 (09:46 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:41:19 +0000 (18:41 +0100)
commita064813079c203094a5a22cc6f74fef547720697
tree47d3304512d4f1f01336a7a2f966d557cb5be005
parent224b995a88aacbe638b3282a674af5e9082bb770
iio: adc: ti_am335x_adc: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Rachna Patil <rachna@ti.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ti_am335x_adc.c