From: Lars-Peter Clausen Date: Mon, 14 Oct 2013 16:49:00 +0000 (+0100) Subject: staging:iio:lis3l02dq: Remove redundant call to iio_sw_buffer_preenable(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=77e587f67616219f7f94109afed4bf5bd2d01ad2;p=linux-beck.git staging:iio:lis3l02dq: Remove redundant call to iio_sw_buffer_preenable(). 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c b/drivers/staging/iio/accel/lis3l02dq_ring.c index 2d559ba353d2..79cefe0a516a 100644 --- a/drivers/staging/iio/accel/lis3l02dq_ring.c +++ b/drivers/staging/iio/accel/lis3l02dq_ring.c @@ -382,7 +382,6 @@ error_ret: } static const struct iio_buffer_setup_ops lis3l02dq_buffer_setup_ops = { - .preenable = &iio_sw_buffer_preenable, .postenable = &lis3l02dq_buffer_postenable, .predisable = &lis3l02dq_buffer_predisable, };