Skip to content
Commit 2e4b88f7 authored by Sven Van Asbroeck's avatar Sven Van Asbroeck Committed by Jonathan Cameron
Browse files

iio: adc: xilinx: prevent touching unclocked h/w on remove



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: default avatarSven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 862e4644
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment