staging: iio: Remove superfluous flush_scheduled_work
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 15 Jun 2012 16:14:36 +0000 (18:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jun 2012 21:36:26 +0000 (14:36 -0700)
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>
drivers/staging/iio/accel/adis16209_core.c
drivers/staging/iio/accel/adis16220_core.c
drivers/staging/iio/accel/adis16240_core.c
drivers/staging/iio/gyro/adis16260_core.c

index f6fd0d3..6fc426e 100644 (file)
@@ -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);
index 6a9ac89..af5c576 100644 (file)
@@ -694,8 +694,6 @@ static int adis16220_remove(struct spi_device *spi)
 {
        struct iio_dev *indio_dev = spi_get_drvdata(spi);
 
-       flush_scheduled_work();
-
        sysfs_remove_bin_file(&indio_dev->dev.kobj, &adc2_bin);
        sysfs_remove_bin_file(&indio_dev->dev.kobj, &adc1_bin);
        sysfs_remove_bin_file(&indio_dev->dev.kobj, &accel_bin);
index 8b15eae..2f59f83 100644 (file)
@@ -641,8 +641,6 @@ static int adis16240_remove(struct spi_device *spi)
 
        struct iio_dev *indio_dev = spi_get_drvdata(spi);
 
-       flush_scheduled_work();
-
        iio_device_unregister(indio_dev);
        adis16240_remove_trigger(indio_dev);
        iio_buffer_unregister(indio_dev);
index ec765f9..fdb84cc 100644 (file)
@@ -728,8 +728,6 @@ static int adis16260_remove(struct spi_device *spi)
        if (ret)
                goto err_ret;
 
-       flush_scheduled_work();
-
        adis16260_remove_trigger(indio_dev);
        iio_buffer_unregister(indio_dev);
        adis16260_unconfigure_ring(indio_dev);