iio: adc: berlin2-adc: convert probe to device-managed only
authorAlexandru Ardelean <aardelean@deviqon.com>
Sun, 26 Sep 2021 19:26:41 +0000 (22:26 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Oct 2021 07:27:35 +0000 (08:27 +0100)
commit461a1c79e7146916a62a7be106f59ed929c73492
tree9625a87e0ee55bff31ab32de9164c7d16d23a5e5
parentbdf48481d01df39c4c95cf4a49b877b4a05e8d50
iio: adc: berlin2-adc: convert probe to device-managed only

This driver requires only a devm_add_action_or_reset() hook for the
power-down of the device, and then devm_iio_device_register() can be used
directly.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210926192642.4051329-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/berlin2-adc.c