staging: iio: ade7758_core: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 11 Sep 2013 09:55:00 +0000 (10:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Sep 2013 10:53:28 +0000 (11:53 +0100)
commitd0060402042942d127ef0c95781a58d485fcaecb
tree86c14a2298f2264e07f64e1e0883797494103e77
parentfde93556b06be5a935e47cf47d04877abb2efe5c
staging: iio: ade7758_core: Use devm_iio_device_alloc

devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Barry Song <21cnbao@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/meter/ade7758_core.c