staging: iio: ad7746: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 24 Aug 2013 19:24:00 +0000 (20:24 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 28 Aug 2013 19:21:34 +0000 (20:21 +0100)
commit0eab65c64a2fbc6356f330b41f7bdadd1a094bbd
tree54b3c1cde1055590f5591dc43b4937638e67f843
parent538ee7cbffc1663d76f257438c35c889b0664fcc
staging: iio: ad7746: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/cdc/ad7746.c