diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-07-04 20:09:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-07-08 23:02:28 +0400 |
commit | 9c586a4ce57b0ac1fbfbc378cd61c7274b703393 (patch) | |
tree | 912f4d3fa4abab280cace1acb21b37c4628236ca | |
parent | f654a7e2b2106aec324f931fb802ffe191a460dd (diff) | |
download | linux-9c586a4ce57b0ac1fbfbc378cd61c7274b703393.tar.xz |
staging:iio:ad7476: Do not return error code in interrupt handler
The interrupt handler should only ever return one of the three irqreturn_t
constants and not an error code. Also make sure to always call
iio_trigger_notify_done before leaving the trigger handler.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/staging/iio/adc/ad7476_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7476_ring.c b/drivers/staging/iio/adc/ad7476_ring.c index 10f8b8dd1fa4..d087b21c51f6 100644 --- a/drivers/staging/iio/adc/ad7476_ring.c +++ b/drivers/staging/iio/adc/ad7476_ring.c @@ -31,7 +31,7 @@ static irqreturn_t ad7476_trigger_handler(int irq, void *p) rxbuf = kzalloc(indio_dev->scan_bytes, GFP_KERNEL); if (rxbuf == NULL) - return -ENOMEM; + goto done; b_sent = spi_read(st->spi, rxbuf, st->chip_info->channel[0].scan_type.storagebits / 8); |