From: Lars-Peter Clausen Date: Mon, 14 Oct 2013 16:49:00 +0000 (+0100) Subject: iio:gp2ap020a00f: Remove redundant call to iio_sw_buffer_preenable() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1e61fb7b19df136dc9124b85da9a7bc0ec6cc351;p=deliverable%2Flinux.git iio:gp2ap020a00f: 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 Cc: Jacek Anaszewski Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c index 2a65bc34face..a530e7712a8e 100644 --- a/drivers/iio/light/gp2ap020a00f.c +++ b/drivers/iio/light/gp2ap020a00f.c @@ -1483,7 +1483,6 @@ error_unlock: } static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = { - .preenable = &iio_sw_buffer_preenable, .postenable = &gp2ap020a00f_buffer_postenable, .predisable = &gp2ap020a00f_buffer_predisable, };