Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57135
b: refs/heads/master
c: 9af2037
h: refs/heads/master
i:
  57133: e4dfa33
  57131: 8df3843
  57127: 037fc3c
  57119: cb8d440
v: v3
  • Loading branch information
Marc Pignat authored and Linus Torvalds committed May 31, 2007
1 parent 31f0aea commit f58bd31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8387c1a46376b8cfc5f4751b27a6c90f930992cf
refs/heads/master: 9af20376ee65cd2d13f7eb587fab70879d8c355b
13 changes: 9 additions & 4 deletions trunk/drivers/pcmcia/at91_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,21 @@ static int at91_cf_suspend(struct platform_device *pdev, pm_message_t mesg)
enable_irq_wake(board->det_pin);
if (board->irq_pin)
enable_irq_wake(board->irq_pin);
} else {
disable_irq_wake(board->det_pin);
if (board->irq_pin)
disable_irq_wake(board->irq_pin);
}
return 0;
}

static int at91_cf_resume(struct platform_device *pdev)
{
struct at91_cf_socket *cf = platform_get_drvdata(pdev);
struct at91_cf_data *board = cf->board;

if (device_may_wakeup(&pdev->dev)) {
disable_irq_wake(board->det_pin);
if (board->irq_pin)
disable_irq_wake(board->irq_pin);
}

pcmcia_socket_dev_resume(&pdev->dev);
return 0;
}
Expand Down

0 comments on commit f58bd31

Please sign in to comment.