extcon: use IRQF_ONESHOT
authorFengguang Wu <fengguang.wu@intel.com>
Thu, 6 Sep 2012 03:56:35 +0000 (11:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:36:56 +0000 (09:36 -0700)
Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

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

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-max77693.c

index 8bb438b7af252473df8a4ce0a70c9af2b95df8f9..758a871fcfdcf697e08d6dcbc20411ff3d256ca1 100644 (file)
@@ -694,7 +694,7 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
 
                ret = request_threaded_irq(virq, NULL,
                                max77693_muic_irq_handler,
-                               0, muic_irq->name, info);
+                               IRQF_ONESHOT, muic_irq->name, info);
                if (ret) {
                        dev_err(&pdev->dev,
                                "failed: irq request (IRQ: %d,"