Files
linux/drivers/iio/adc/xilinx-xadc-core.c
Sven Van Asbroeck f07db1f1f5 iio: adc: xilinx: prevent touching unclocked h/w on remove
[ Upstream commit 2e4b88f739 ]

In remove, the clock is disabled before canceling the
delayed work. This means that the delayed work may be
touching unclocked hardware.

Fix by disabling the clock after the delayed work is
fully canceled. This is consistent with the probe error
path order.

Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-05-16 19:41:19 +02:00

34 KiB