diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-07-02 10:54:45 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-07-08 20:02:24 +0100 |
commit | a91aff1c09fc41a55ccaa115763ff77e36b527d3 (patch) | |
tree | 67399c19ed775cdd8f87997f7b03afeff89638e2 /drivers/staging/iio/adc/ad7816.c | |
parent | e1dc7bee745f74b42685b4b0b0a24895966e545e (diff) | |
download | linux-3.10-a91aff1c09fc41a55ccaa115763ff77e36b527d3.tar.gz linux-3.10-a91aff1c09fc41a55ccaa115763ff77e36b527d3.tar.bz2 linux-3.10-a91aff1c09fc41a55ccaa115763ff77e36b527d3.zip |
staging:iio: Request threaded-only IRQs with IRQF_ONESHOT
Since commit 1c6c69525b ("genirq: Reject bogus threaded irq requests") threaded
IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise
the request will fail. This patch adds the IRQF_ONESHOT to IIO drivers where it
is missing.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/adc/ad7816.c')
-rw-r--r-- | drivers/staging/iio/adc/ad7816.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c index 5356b091b08..c5fb9476a2d 100644 --- a/drivers/staging/iio/adc/ad7816.c +++ b/drivers/staging/iio/adc/ad7816.c @@ -402,7 +402,7 @@ static int __devinit ad7816_probe(struct spi_device *spi_dev) ret = request_threaded_irq(spi_dev->irq, NULL, &ad7816_event_handler, - IRQF_TRIGGER_LOW, + IRQF_TRIGGER_LOW | IRQF_ONESHOT, indio_dev->name, indio_dev); if (ret) |