mfd: Enable IRQF_ONESHOT when requesting a threaded IRQ for ab8500gpadc
authorLee Jones <lee.jones@linaro.org>
Wed, 30 May 2012 04:47:34 +0000 (12:47 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jul 2012 22:16:08 +0000 (00:16 +0200)
The kernel now forces IRQs to be ONESHOT if no IRQ handler is passed.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-gpadc.c

index b86fd8e1ec3fbae7c4bf6770c1598a777d657d78..b6cbc3ba2695cb198eef4359aba4969aba7d12a3 100644 (file)
@@ -599,7 +599,8 @@ static int __devinit ab8500_gpadc_probe(struct platform_device *pdev)
        /* Register interrupt  - SwAdcComplete */
        ret = request_threaded_irq(gpadc->irq, NULL,
                ab8500_bm_gpswadcconvend_handler,
-               IRQF_NO_SUSPEND | IRQF_SHARED, "ab8500-gpadc", gpadc);
+               IRQF_ONESHOT | IRQF_NO_SUSPEND | IRQF_SHARED,
+                               "ab8500-gpadc", gpadc);
        if (ret < 0) {
                dev_err(gpadc->dev, "Failed to register interrupt, irq: %d\n",
                        gpadc->irq);