]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ti-adc108s102: Use devm managed functions for all of probe()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 May 2021 17:25:19 +0000 (18:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 May 2021 18:27:35 +0000 (19:27 +0100)
commit63a19756cde1bdec91c10c6f88c94dda5872daa1
tree15ae142bc18dc94d501486e38ffa2fa43a3f3775
parent4408ea4730a7f28e4305efec9141f6cdbcf188eb
iio: adc: ti-adc108s102: Use devm managed functions for all of probe()

Simplifies error handling and lets us drop remove() entirely.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Bogdan Pricop <bogdan.pricop@emutex.com>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210516172520.1398835-8-jic23@kernel.org
drivers/iio/adc/ti-adc108s102.c