staging:iio:ad9852: Use devm_iio_device_register
authorHimangi Saraogi <himangi774@gmail.com>
Sat, 8 Mar 2014 10:58:00 +0000 (10:58 +0000)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 Aug 2014 13:46:49 +0000 (14:46 +0100)
commitaf097e86312f2a2ec83d9d2497425f5d61592953
treeb2b70e455f521d6a9bd589d3b381600b8832ca01
parent84e93b38c2a93c59b23349b1e31de1a3657fa4c0
staging:iio:ad9852: Use devm_iio_device_register

This patch introduces the use of devm_iio_device_register and does away
with the unregister in the remove function.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/frequency/ad9852.c