twl4030_charger: Use IRQF_ONESHOT
authorFengguang Wu <fengguang.wu@intel.com>
Thu, 23 Aug 2012 11:56:43 +0000 (19:56 +0800)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 20 Sep 2012 22:41:49 +0000 (15:41 -0700)
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@intel.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/twl4030_charger.c

index 8d6bc68..f9e70cf 100644 (file)
@@ -534,7 +534,8 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
        }
 
        ret = request_threaded_irq(bci->irq_chg, NULL,
-                       twl4030_charger_interrupt, 0, pdev->name, bci);
+                       twl4030_charger_interrupt, IRQF_ONESHOT, pdev->name,
+                       bci);
        if (ret < 0) {
                dev_err(&pdev->dev, "could not request irq %d, status %d\n",
                        bci->irq_chg, ret);
@@ -542,7 +543,7 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
        }
 
        ret = request_threaded_irq(bci->irq_bci, NULL,
-                       twl4030_bci_interrupt, 0, pdev->name, bci);
+                       twl4030_bci_interrupt, IRQF_ONESHOT, pdev->name, bci);
        if (ret < 0) {
                dev_err(&pdev->dev, "could not request irq %d, status %d\n",
                        bci->irq_bci, ret);