]> git.karo-electronics.de Git - karo-tx-linux.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)
commitb220da654d268c79f420fbfac6a35eb420b9cc4b
tree333e40c453c1ab8d6adbe9e3ac6dc6ab45c52bf7
parentc11e28f959a6e700d19a952e078cb368c2e781a4
iio: twl4030-madc: Pass the IRQF_ONESHOT flag

Since commit 1c6c69525b40 ("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