summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-uniphier.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <aardelean@deviqon.com>2021-09-03 10:29:16 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-19 10:27:34 +0300
commit9c22f459cc413db4b7164f35eb99010d9284b4bb (patch)
tree0ac3f348beb726b3c3dc44821a5f6ac5ea1bf0e5 /drivers/gpio/gpio-uniphier.c
parent298fdedc4aff5f6bb5386170a718e7043166d3cd (diff)
downloadlinux-9c22f459cc413db4b7164f35eb99010d9284b4bb.tar.xz
iio: adc: lp8788_adc: convert probe to full-device managed
This change converts the probe of this driver to use device-managed functions only, which means that the remove hook can be removed. The remove hook has only 2 calls to iio_device_unregister() and iio_map_array_unregister(). Both these can now be done via devm register functions, now that there's also a devm_iio_map_array_register() function. The platform_set_drvdata() can also be removed now. This change also removes the error print for when the iio_device_register() call fails. This isn't required now. Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com> Link: https://lore.kernel.org/r/20210903072917.45769-5-aardelean@deviqon.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/gpio/gpio-uniphier.c')
0 files changed, 0 insertions, 0 deletions