diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-bfin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index d53772f59ce5..e6b0470063e8 100644 --- a/drivers/rtc/rtc-bfin.c +++ b/drivers/rtc/rtc-bfin.c | |||
@@ -435,9 +435,10 @@ static int __devexit bfin_rtc_remove(struct platform_device *pdev) | |||
435 | #ifdef CONFIG_PM | 435 | #ifdef CONFIG_PM |
436 | static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state) | 436 | static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state) |
437 | { | 437 | { |
438 | if (device_may_wakeup(&pdev->dev)) | 438 | if (device_may_wakeup(&pdev->dev)) { |
439 | enable_irq_wake(IRQ_RTC); | 439 | enable_irq_wake(IRQ_RTC); |
440 | else | 440 | bfin_rtc_sync_pending(&pdev->dev); |
441 | } else | ||
441 | bfin_rtc_int_clear(-1); | 442 | bfin_rtc_int_clear(-1); |
442 | 443 | ||
443 | return 0; | 444 | return 0; |