Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166101
b: refs/heads/master
c: e6e698a
h: refs/heads/master
i:
  166099: f28bd29
v: v3
  • Loading branch information
Robert Jarzmik authored and Eric Miao committed Sep 10, 2009
1 parent a2eabeb commit e86503e
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 752807871ad27520d31baec1800f1db59e84f2a1
refs/heads/master: e6e698a4fb3cbeef9f478f9f165998246d9b1b0b
27 changes: 15 additions & 12 deletions trunk/drivers/rtc/rtc-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,34 +438,37 @@ static int __exit pxa_rtc_remove(struct platform_device *pdev)
}

#ifdef CONFIG_PM
static int pxa_rtc_suspend(struct platform_device *pdev, pm_message_t state)
static int pxa_rtc_suspend(struct device *dev)
{
struct pxa_rtc *pxa_rtc = platform_get_drvdata(pdev);
struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev);

if (device_may_wakeup(&pdev->dev))
if (device_may_wakeup(dev))
enable_irq_wake(pxa_rtc->irq_Alrm);
return 0;
}

static int pxa_rtc_resume(struct platform_device *pdev)
static int pxa_rtc_resume(struct device *dev)
{
struct pxa_rtc *pxa_rtc = platform_get_drvdata(pdev);
struct pxa_rtc *pxa_rtc = dev_get_drvdata(dev);

if (device_may_wakeup(&pdev->dev))
if (device_may_wakeup(dev))
disable_irq_wake(pxa_rtc->irq_Alrm);
return 0;
}
#else
#define pxa_rtc_suspend NULL
#define pxa_rtc_resume NULL

static struct dev_pm_ops pxa_rtc_pm_ops = {
.suspend = pxa_rtc_suspend,
.resume = pxa_rtc_resume,
};
#endif

static struct platform_driver pxa_rtc_driver = {
.remove = __exit_p(pxa_rtc_remove),
.suspend = pxa_rtc_suspend,
.resume = pxa_rtc_resume,
.driver = {
.name = "pxa-rtc",
.name = "pxa-rtc",
#ifdef CONFIG_PM
.pm = &pxa_rtc_pm_ops,
#endif
},
};

Expand Down

0 comments on commit e86503e

Please sign in to comment.