diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-06-15 16:14:36 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-15 21:36:26 (GMT) |
commit | eaedfa54db0584ddf7308bb99c473cc6cf28fb65 (patch) | |
tree | 1d311ff15bcbe6489fbf28063a07b4f76fe0ed06 /drivers/staging/iio/accel/adis16209_core.c | |
parent | 25c38aa3d17d6ccfca225fafce68401908a1ccb4 (diff) | |
download | linux-eaedfa54db0584ddf7308bb99c473cc6cf28fb65.tar.xz |
staging: iio: Remove superfluous flush_scheduled_work
None of these drivers ever schedule any work, so there is no need to flush any
scheduled work when the driver is removed.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/accel/adis16209_core.c')
-rw-r--r-- | drivers/staging/iio/accel/adis16209_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/accel/adis16209_core.c b/drivers/staging/iio/accel/adis16209_core.c index f6fd0d3..6fc426e 100644 --- a/drivers/staging/iio/accel/adis16209_core.c +++ b/drivers/staging/iio/accel/adis16209_core.c @@ -606,8 +606,6 @@ static int adis16209_remove(struct spi_device *spi) { struct iio_dev *indio_dev = spi_get_drvdata(spi); - flush_scheduled_work(); - iio_device_unregister(indio_dev); adis16209_remove_trigger(indio_dev); iio_buffer_unregister(indio_dev); |