Skip to content

Commit

Permalink
extcon: max8997/max77693: Support IRQF_NO_SUSPEND flag for interrupt
Browse files Browse the repository at this point in the history
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
  • Loading branch information
Chanwoo Choi committed Jan 15, 2013
1 parent 297620f commit ae3b321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/extcon/extcon-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,13 +1006,13 @@ static int max77693_muic_probe(struct platform_device *pdev)

ret = request_threaded_irq(virq, NULL,
max77693_muic_irq_handler,
IRQF_ONESHOT, muic_irq->name, info);
IRQF_NO_SUSPEND,
muic_irq->name, info);
if (ret) {
dev_err(&pdev->dev,
"failed: irq request (IRQ: %d,"
" error :%d)\n",
muic_irq->irq, ret);

goto err_irq;
}
}
Expand Down
6 changes: 4 additions & 2 deletions drivers/extcon/extcon-max8997.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@ static int max8997_muic_probe(struct platform_device *pdev)
}
muic_irq->virq = virq;

ret = request_threaded_irq(virq, NULL, max8997_muic_irq_handler,
0, muic_irq->name, info);
ret = request_threaded_irq(virq, NULL,
max8997_muic_irq_handler,
IRQF_NO_SUSPEND,
muic_irq->name, info);
if (ret) {
dev_err(&pdev->dev,
"failed: irq request (IRQ: %d,"
Expand Down

0 comments on commit ae3b321

Please sign in to comment.