mfd: Use IRQF_ONESHOT for 88pm860x
authorFengguang Wu <fengguang.wu@intel.com>
Wed, 19 Sep 2012 01:30:51 +0000 (09:30 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 19 Sep 2012 10:13:09 +0000 (12:13 +0200)
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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm860x-core.c

index 0c01d740325119ebf147631f8362b45f8c5433a1..ad966c413087c8fab45ef1a968af9c87056d3cb9 100644 (file)
@@ -659,7 +659,7 @@ static int __devinit device_irq_init(struct pm860x_chip *chip,
 #endif
        }
 
-       ret = request_threaded_irq(chip->core_irq, NULL, pm860x_irq, flags,
+       ret = request_threaded_irq(chip->core_irq, NULL, pm860x_irq, flags | IRQF_ONESHOT,
                                   "88pm860x", chip);
        if (ret) {
                dev_err(chip->dev, "Failed to request IRQ: %d\n", ret);