iio:ti_am335x: Remove redundant call to iio_sw_buffer_preenable()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 14 Oct 2013 16:49:00 +0000 (17:49 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 16 Oct 2013 18:12:46 +0000 (19:12 +0100)
The equivalent of iio_sw_buffer_preenable() is now done in the IIO buffer
core, so there is no need to do this from the driver anymore.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Zubair Lutfullah <zubair.lutfullah@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ti_am335x_adc.c

index 8fb5429e39aec41a1c37cc12816ece904a7c6168..ef54d8a588d20d7fead50dc0187dc3c4a0fb3baa 100644 (file)
@@ -166,7 +166,7 @@ static int tiadc_buffer_preenable(struct iio_dev *indio_dev)
        for (i = 0; i < fifo1count; i++)
                read = tiadc_readl(adc_dev, REG_FIFO1);
 
-       return iio_sw_buffer_preenable(indio_dev);
+       return 0;
 }
 
 static int tiadc_buffer_postenable(struct iio_dev *indio_dev)