]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: xilinx: use more devres helpers and remove remove()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 30 Nov 2020 14:27:59 +0000 (15:27 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Jan 2021 14:25:26 +0000 (14:25 +0000)
commitf4f9f9382b591bcc60ca47384766dae03840e67b
tree52f3aa721d67405452dcec90f5c0b73a48ba98c2
parent16ef117af8b71fdb33fb645ef4e72b5ba8dcd01f
iio: adc: xilinx: use more devres helpers and remove remove()

In order to simplify resource management and error paths in probe() and
entirely drop the remove() callback - use devres helpers wherever
possible. Define devm actions for cancelling the delayed work and
disabling the clock.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Anand Ashok Dumbre <anandash@xilinx.com>
Reviewed-by: Anand Ashok Dumbre <anandash@xilinx.com>
Link: https://lore.kernel.org/r/20201130142759.28216-4-brgl@bgdev.pl
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c