]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio:adc:ad7476: Fix remove handling
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 1 Apr 2021 17:17:57 +0000 (18:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:25 +0000 (10:49 +0200)
commit4d40ae59a9cfd51390461c2c24fc7ad03968639d
tree316be974ef969bccad9a89ce5bfb282cdda353f6
parentf20c3aa3f84652c0b74fde7dc268afe2e8465385
iio:adc:ad7476: Fix remove handling

commit 6baee4bd63f5fdf1716f88e95c21a683e94fe30d upstream.

This driver was in an odd half way state between devm based cleanup
and manual cleanup (most of which was missing).
I would guess something went wrong with a rebase or similar.
Anyhow, this basically finishes the job as a precursor to improving
the regulator handling.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Fixes: 4bb2b8f94ace3 ("iio: adc: ad7476: implement devm_add_action_or_reset")
Cc: Michael Hennerich <michael.hennerich@analog.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210401171759.318140-2-jic23@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ad7476.c