Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83545
b: refs/heads/master
c: f618258
h: refs/heads/master
i:
  83543: 0e613dd
v: v3
  • Loading branch information
David Brownell authored and Linus Torvalds committed Feb 6, 2008
1 parent 089fd85 commit 89dee38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 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: 8696e70267a6b1c7f1e26b32ce97646334b1613a
refs/heads/master: f618258ad8af0413f08af60bd0eb050562e700fa
16 changes: 4 additions & 12 deletions trunk/drivers/rtc/rtc-sa1100.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,23 +357,15 @@ static int sa1100_rtc_remove(struct platform_device *pdev)
#ifdef CONFIG_PM
static int sa1100_rtc_suspend(struct platform_device *pdev, pm_message_t state)
{
if (pdev->dev.power.power_state.event != state.event) {
if (state.event == PM_EVENT_SUSPEND &&
device_may_wakeup(&pdev->dev))
enable_irq_wake(IRQ_RTCAlrm);

pdev->dev.power.power_state = state;
}
if (device_may_wakeup(&pdev->dev))
enable_irq_wake(IRQ_RTCAlrm);
return 0;
}

static int sa1100_rtc_resume(struct platform_device *pdev)
{
if (pdev->dev.power.power_state.event != PM_EVENT_ON) {
if (device_may_wakeup(&pdev->dev))
disable_irq_wake(IRQ_RTCAlrm);
pdev->dev.power.power_state = PMSG_ON;
}
if (device_may_wakeup(&pdev->dev))
disable_irq_wake(IRQ_RTCAlrm);
return 0;
}
#else
Expand Down

0 comments on commit 89dee38

Please sign in to comment.