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

Simplifies error handling, plus allows us to drop the remove()
function entirely.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210516172520.1398835-7-jic23@kernel.org
drivers/iio/adc/ti-adc0832.c