From: Lars-Peter Clausen Date: Mon, 14 Oct 2013 16:49:00 +0000 (+0100) Subject: staging:iio:ad5933: Remove redundant call to iio_sw_buffer_preenable() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=75b19bbf22842edb9f6bb037a5befa31132c032a;p=linux-beck.git staging:iio:ad5933: 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/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index f5701159bf36..0a4298b744e6 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -574,10 +574,6 @@ static int ad5933_ring_preenable(struct iio_dev *indio_dev) if (bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength)) return -EINVAL; - ret = iio_sw_buffer_preenable(indio_dev); - if (ret < 0) - return ret; - ret = ad5933_reset(st); if (ret < 0) return ret;