iio: gyro: itg3200_core: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 13 Aug 2013 06:34:00 +0000 (07:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 17 Aug 2013 14:50:56 +0000 (15:50 +0100)
commitd243b3c06d4d462ccc8d29dacb894cb25d56972f
tree1dc198b3fdd050c3c5c07ffedee83b51a3d29c02
parent6694cf9652c718b624c459867e7833c759665225
iio: gyro: itg3200_core: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Christian Strobel <christian.strobel@iis.fraunhofer.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/itg3200_core.c