Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176617
b: refs/heads/master
c: 6f38b04
h: refs/heads/master
i:
  176615: 2ea6bad
v: v3
  • Loading branch information
Mark Brown authored and Linus Torvalds committed Dec 16, 2009
1 parent 9eb55c8 commit 782df54
Show file tree
Hide file tree
Showing 2 changed files with 11 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: aeedacaeaf9c02dddfeb6af87bef80c96f9050cb
refs/heads/master: 6f38b0436f7f0f0626d1f078edf4c38b0802b8f8
14 changes: 10 additions & 4 deletions trunk/drivers/rtc/rtc-wm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,9 @@ static const struct rtc_class_ops wm8350_rtc_ops = {
};

#ifdef CONFIG_PM
static int wm8350_rtc_suspend(struct platform_device *pdev, pm_message_t state)
static int wm8350_rtc_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct wm8350 *wm8350 = dev_get_drvdata(&pdev->dev);
int ret = 0;
u16 reg;
Expand All @@ -373,8 +374,9 @@ static int wm8350_rtc_suspend(struct platform_device *pdev, pm_message_t state)
return ret;
}

static int wm8350_rtc_resume(struct platform_device *pdev)
static int wm8350_rtc_resume(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct wm8350 *wm8350 = dev_get_drvdata(&pdev->dev);
int ret;

Expand Down Expand Up @@ -484,13 +486,17 @@ static int __devexit wm8350_rtc_remove(struct platform_device *pdev)
return 0;
}

static struct dev_pm_ops wm8350_rtc_pm_ops = {
.suspend = wm8350_rtc_suspend,
.resume = wm8350_rtc_resume,
};

static struct platform_driver wm8350_rtc_driver = {
.probe = wm8350_rtc_probe,
.remove = __devexit_p(wm8350_rtc_remove),
.suspend = wm8350_rtc_suspend,
.resume = wm8350_rtc_resume,
.driver = {
.name = "wm8350-rtc",
.pm = &wm8350_rtc_pm_ops,
},
};

Expand Down

0 comments on commit 782df54

Please sign in to comment.