Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365787
b: refs/heads/master
c: 0ed5054
h: refs/heads/master
i:
  365785: 3723370
  365783: 97ba964
v: v3
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Apr 30, 2013
1 parent 36bf102 commit 1df7404
Show file tree
Hide file tree
Showing 2 changed files with 5 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: aaa92fae8c9c3cee7f39e64b1a44df3d77320d49
refs/heads/master: 0ed5054447462976b7577ccf08d422c93ea38095
9 changes: 4 additions & 5 deletions trunk/drivers/rtc/rtc-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ static void sh_rtc_set_irq_wake(struct device *dev, int enabled)
}
}

#ifdef CONFIG_PM_SLEEP
static int sh_rtc_suspend(struct device *dev)
{
if (device_may_wakeup(dev))
Expand All @@ -805,17 +806,15 @@ static int sh_rtc_resume(struct device *dev)

return 0;
}
#endif

static const struct dev_pm_ops sh_rtc_dev_pm_ops = {
.suspend = sh_rtc_suspend,
.resume = sh_rtc_resume,
};
static SIMPLE_DEV_PM_OPS(sh_rtc_pm_ops, sh_rtc_suspend, sh_rtc_resume);

static struct platform_driver sh_rtc_platform_driver = {
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &sh_rtc_dev_pm_ops,
.pm = &sh_rtc_pm_ops,
},
.remove = __exit_p(sh_rtc_remove),
};
Expand Down

0 comments on commit 1df7404

Please sign in to comment.