Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210924
b: refs/heads/master
c: f501ed5
h: refs/heads/master
v: v3
  • Loading branch information
Vladimir Zapolskiy authored and Linus Torvalds committed Sep 23, 2010
1 parent 65e329a commit 6302ff5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 2aeadc30de45a72648f271603203ab392b80f607
refs/heads/master: f501ed524b26ba1b739b7f7feb0a0e1496878769
13 changes: 8 additions & 5 deletions trunk/drivers/rtc/rtc-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,6 @@ static int s3c_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm)

s3c_rtc_setaie(alrm->enabled);

if (alrm->enabled)
enable_irq_wake(s3c_rtc_alarmno);
else
disable_irq_wake(s3c_rtc_alarmno);

return 0;
}

Expand Down Expand Up @@ -587,6 +582,10 @@ static int s3c_rtc_suspend(struct platform_device *pdev, pm_message_t state)
ticnt_en_save &= S3C64XX_RTCCON_TICEN;
}
s3c_rtc_enable(pdev, 0);

if (device_may_wakeup(&pdev->dev))
enable_irq_wake(s3c_rtc_alarmno);

return 0;
}

Expand All @@ -600,6 +599,10 @@ static int s3c_rtc_resume(struct platform_device *pdev)
tmp = readb(s3c_rtc_base + S3C2410_RTCCON);
writeb(tmp | ticnt_en_save, s3c_rtc_base + S3C2410_RTCCON);
}

if (device_may_wakeup(&pdev->dev))
disable_irq_wake(s3c_rtc_alarmno);

return 0;
}
#else
Expand Down

0 comments on commit 6302ff5

Please sign in to comment.