mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
iio: ssp_sensors: cancel delayed work_refresh on remove
The work_refresh may still be pending or running when the device is
removed, cancel the delayed work_refresh in remove path.
Fixes: 50dd64d57e ("iio: common: ssp_sensors: Add sensorhub driver")
Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
ba121d7582
commit
eedf7602fb
|
|
@ -590,6 +590,7 @@ static void ssp_remove(struct spi_device *spi)
|
|||
ssp_clean_pending_list(data);
|
||||
|
||||
free_irq(data->spi->irq, data);
|
||||
cancel_delayed_work_sync(&data->work_refresh);
|
||||
|
||||
timer_delete_sync(&data->wdt_timer);
|
||||
cancel_work_sync(&data->work_wdt);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user