]> git.baikalelectronics.ru Git - kernel.git/commit
iio: twl4030-madc: Pass the IRQF_ONESHOT flag
authorFabio Estevam <fabio.estevam@freescale.com>
Sun, 24 May 2015 20:39:04 +0000 (17:39 -0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:48:00 +0000 (11:48 +0100)
commit07390a349193cd1af754c9d5b123599384777a5a
tree333e40c453c1ab8d6adbe9e3ac6dc6ab45c52bf7
parent5586193d730fee507ad213b6f194b2f8b0cd62ec
iio: twl4030-madc: Pass the IRQF_ONESHOT flag

Since commit 4df38d498ad6 ("genirq: Reject bogus threaded irq requests")
threaded IRQs without a primary handler need to be requested with
IRQF_ONESHOT, otherwise the request will fail.

So pass the IRQF_ONESHOT flag in this case.

The semantic patch that makes this change is available
in scripts/coccinelle/misc/irqf_oneshot.cocci.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/twl4030-madc.c