iio: adc: ad7949: use devm managed functions
authorLiam Beguin <lvb@xiphos.com>
Sun, 15 Aug 2021 21:33:09 +0000 (17:33 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Sep 2021 11:00:31 +0000 (12:00 +0100)
commit870d26f6599d8f9768f83004a5c9a25564add3f0
treea1abeb714054bcf1b2649d49e98338c1be28b2ff
parent9a7b7594de4fa7abd8f6a24e9e389e1e70c11685
iio: adc: ad7949: use devm managed functions

Switch to devm_iio_device_register to finalize devm migration.
This removes the use for iio_device_unregister() and since
mutex_destroy() is not necessary here, remove it altogether.

Signed-off-by: Liam Beguin <lvb@xiphos.com>
Link: https://lore.kernel.org/r/20210815213309.2847711-6-liambeguin@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7949.c