Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218493
b: refs/heads/master
c: d7c7ef9
h: refs/heads/master
i:
  218491: 1c386a6
v: v3
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed Oct 28, 2010
1 parent 614b384 commit f1a9de9
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 286f9f95fcb165919125ef51bae23ef7a9f24008
refs/heads/master: d7c7ef908b6497bb871e2e113e66e8fb0f757543
16 changes: 12 additions & 4 deletions trunk/drivers/rtc/rtc-bfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Blackfin On-Chip Real Time Clock Driver
* Supports BF51x/BF52x/BF53[123]/BF53[467]/BF54x
*
* Copyright 2004-2009 Analog Devices Inc.
* Copyright 2004-2010 Analog Devices Inc.
*
* Enter bugs at http://blackfin.uclinux.org/
*
Expand Down Expand Up @@ -427,9 +427,13 @@ static int __devexit bfin_rtc_remove(struct platform_device *pdev)
#ifdef CONFIG_PM
static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state)
{
if (device_may_wakeup(&pdev->dev)) {
struct device *dev = &pdev->dev;

dev_dbg_stamp(dev);

if (device_may_wakeup(dev)) {
enable_irq_wake(IRQ_RTC);
bfin_rtc_sync_pending(&pdev->dev);
bfin_rtc_sync_pending(dev);
} else
bfin_rtc_int_clear(0);

Expand All @@ -438,7 +442,11 @@ static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state)

static int bfin_rtc_resume(struct platform_device *pdev)
{
if (device_may_wakeup(&pdev->dev))
struct device *dev = &pdev->dev;

dev_dbg_stamp(dev);

if (device_may_wakeup(dev))
disable_irq_wake(IRQ_RTC);

/*
Expand Down

0 comments on commit f1a9de9

Please sign in to comment.