extcon: max8997/max77693: Support IRQF_NO_SUSPEND flag for interrupt

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
This commit is contained in:
Chanwoo Choi 2012-11-28 12:39:01 +09:00
parent 297620fd1e
commit ae3b3215f8
2 changed files with 6 additions and 4 deletions

View file

@ -1006,13 +1006,13 @@ static int max77693_muic_probe(struct platform_device *pdev)
ret = request_threaded_irq(virq, NULL, ret = request_threaded_irq(virq, NULL,
max77693_muic_irq_handler, max77693_muic_irq_handler,
IRQF_ONESHOT, muic_irq->name, info); IRQF_NO_SUSPEND,
muic_irq->name, info);
if (ret) { if (ret) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"failed: irq request (IRQ: %d," "failed: irq request (IRQ: %d,"
" error :%d)\n", " error :%d)\n",
muic_irq->irq, ret); muic_irq->irq, ret);
goto err_irq; goto err_irq;
} }
} }

View file

@ -459,8 +459,10 @@ static int max8997_muic_probe(struct platform_device *pdev)
} }
muic_irq->virq = virq; muic_irq->virq = virq;
ret = request_threaded_irq(virq, NULL, max8997_muic_irq_handler, ret = request_threaded_irq(virq, NULL,
0, muic_irq->name, info); max8997_muic_irq_handler,
IRQF_NO_SUSPEND,
muic_irq->name, info);
if (ret) { if (ret) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"failed: irq request (IRQ: %d," "failed: irq request (IRQ: %d,"