Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: mc13xxx-core: Pass the IRQF_ONESHOT flag

Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Fabio Estevam and committed by
Lee Jones
0b182c28 7d5b1ed8

+1 -1
+1 -1
drivers/mfd/mc13xxx-core.c
··· 163 163 int virq = regmap_irq_get_virq(mc13xxx->irq_data, irq); 164 164 165 165 return devm_request_threaded_irq(mc13xxx->dev, virq, NULL, handler, 166 - 0, name, dev); 166 + IRQF_ONESHOT, name, dev); 167 167 } 168 168 EXPORT_SYMBOL(mc13xxx_irq_request); 169 169