summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-02-19 21:44:39 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-03-11 12:18:28 +0000
commit4ab8bef1eaa534d3669852f2fe22e0f1c86c1426 (patch)
tree02e0686018ee85ddd096acdaf58250756d30db57 /drivers/iio/pressure
parentc286b0472ca8d76092c1f4fb782c6745b26e74f6 (diff)
downloadlwn-4ab8bef1eaa534d3669852f2fe22e0f1c86c1426.tar.gz
lwn-4ab8bef1eaa534d3669852f2fe22e0f1c86c1426.zip
iio: adc: meson_saradc: Better handle BL30 not releasing the hardware
meson_sar_adc_lock() might return an error if BL30 doesn't release its lock on the hardware. Just returning early from .remove() is wrong however as this keeps the clocks and regulators on which is never cleaned up later. Given the BL30 not giving up its lock is a strong hint for broken behaviour, and there is nothing we can do about that: Just clean up ignoring the fact that we're not holding the lock. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://lore.kernel.org/r/20230219204439.1641640-1-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/pressure')
0 files changed, 0 insertions, 0 deletions