iio:dac:max517.c: Use devm_iio_device_register()
authorMugilraj Dhavachelvan <dmugil2000@gmail.com>
Sun, 14 Mar 2021 17:57:09 +0000 (23:27 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 25 Mar 2021 19:13:52 +0000 (19:13 +0000)
commit2662e81745fc00cafcbbb532018013607cae84e0
tree902b929773195b6c002a5d0e493d595eba76af84
parent85ece364065eb068439ca3fe4f11d096575d3074
iio:dac:max517.c: Use devm_iio_device_register()

Use devm_iio_device_register() to avoid remove function and
drop explicit call to iio_device_unregister().

Signed-off-by: Mugilraj Dhavachelvan <dmugil2000@gmail.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20210314175709.34301-1-dmugil2000@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/max517.c