iio: adc: intel_mrfld_adc: convert probe to full device-managed
authorAlexandru Ardelean <aardelean@deviqon.com>
Fri, 3 Sep 2021 07:29:14 +0000 (10:29 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Oct 2021 07:27:34 +0000 (08:27 +0100)
commit7a29120c6e31e2f2ce3a0bacdcbc5efaf6603589
tree6ec3931f1389355ac584802797291a4d2455136d
parent25c02edfd41f0dd7aad9115149625d7e7f441b7d
iio: adc: intel_mrfld_adc: convert probe to full device-managed

The only call in the remove hook is the iio_map_array_unregister() call.
Since we have a devm_iio_map_array_register() function now, we can use that
and remove the remove hook entirely.
The IIO device was registered with the devm_iio_device_register() prior to
this change.

Also, the platform_set_drvdata() can be removed now, since it was used only
in the remove hook.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210903072917.45769-3-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/intel_mrfld_adc.c