mfd: Enable IRQF_ONESHOT when requesting a threaded IRQ for ab8500gpadc

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>
This commit is contained in:
Lee Jones 2012-05-30 12:47:34 +08:00 committed by Samuel Ortiz
parent e7c706b1e5
commit 6e19e837c8
1 changed files with 2 additions and 1 deletions

View File

@ -599,7 +599,8 @@ static int __devinit ab8500_gpadc_probe(struct platform_device *pdev)
/* Register interrupt - SwAdcComplete */ /* Register interrupt - SwAdcComplete */
ret = request_threaded_irq(gpadc->irq, NULL, ret = request_threaded_irq(gpadc->irq, NULL,
ab8500_bm_gpswadcconvend_handler, 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) { if (ret < 0) {
dev_err(gpadc->dev, "Failed to register interrupt, irq: %d\n", dev_err(gpadc->dev, "Failed to register interrupt, irq: %d\n",
gpadc->irq); gpadc->irq);