[PATCH] mfd: arizona: use IRQF_ONESHOT

From: Fengguang Wu
Date: Wed Sep 19 2012 - 19:24:02 EST


Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

Make sure threaded IRQs without a primary handler are always request
with IRQF_ONESHOT.

Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

Please take the patch only if it's a positive warning. Thanks!

drivers/mfd/arizona-irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux.orig/drivers/mfd/arizona-irq.c 2012-08-03 15:36:21.583560783 +0800
+++ linux/drivers/mfd/arizona-irq.c 2012-09-20 07:21:10.932045625 +0800
@@ -236,7 +236,7 @@ int arizona_irq_init(struct arizona *ari
}

ret = request_threaded_irq(arizona->irq, NULL, arizona_irq_thread,
- flags, "arizona", arizona);
+ flags | IRQF_ONESHOT, "arizona", arizona);

if (ret != 0) {
dev_err(arizona->dev, "Failed to request IRQ %d: %d\n",
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/