diff options
Diffstat (limited to 'drivers/rtc/rtc-omap.c')
-rw-r--r-- | drivers/rtc/rtc-omap.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c index ded35fd13ba0..e6c7b0149f27 100644 --- a/drivers/rtc/rtc-omap.c +++ b/drivers/rtc/rtc-omap.c | |||
@@ -488,19 +488,10 @@ static int __devexit omap_rtc_remove(struct platform_device *pdev) | |||
488 | 488 | ||
489 | #ifdef CONFIG_PM | 489 | #ifdef CONFIG_PM |
490 | 490 | ||
491 | static struct timespec rtc_delta; | ||
492 | static u8 irqstat; | 491 | static u8 irqstat; |
493 | 492 | ||
494 | static int omap_rtc_suspend(struct platform_device *pdev, pm_message_t state) | 493 | static int omap_rtc_suspend(struct platform_device *pdev, pm_message_t state) |
495 | { | 494 | { |
496 | struct rtc_time rtc_tm; | ||
497 | struct timespec time; | ||
498 | |||
499 | time.tv_nsec = 0; | ||
500 | omap_rtc_read_time(NULL, &rtc_tm); | ||
501 | rtc_tm_to_time(&rtc_tm, &time.tv_sec); | ||
502 | |||
503 | save_time_delta(&rtc_delta, &time); | ||
504 | irqstat = rtc_read(OMAP_RTC_INTERRUPTS_REG); | 495 | irqstat = rtc_read(OMAP_RTC_INTERRUPTS_REG); |
505 | 496 | ||
506 | /* FIXME the RTC alarm is not currently acting as a wakeup event | 497 | /* FIXME the RTC alarm is not currently acting as a wakeup event |
@@ -517,14 +508,6 @@ static int omap_rtc_suspend(struct platform_device *pdev, pm_message_t state) | |||
517 | 508 | ||
518 | static int omap_rtc_resume(struct platform_device *pdev) | 509 | static int omap_rtc_resume(struct platform_device *pdev) |
519 | { | 510 | { |
520 | struct rtc_time rtc_tm; | ||
521 | struct timespec time; | ||
522 | |||
523 | time.tv_nsec = 0; | ||
524 | omap_rtc_read_time(NULL, &rtc_tm); | ||
525 | rtc_tm_to_time(&rtc_tm, &time.tv_sec); | ||
526 | |||
527 | restore_time_delta(&rtc_delta, &time); | ||
528 | if (device_may_wakeup(&pdev->dev)) | 511 | if (device_may_wakeup(&pdev->dev)) |
529 | disable_irq_wake(omap_rtc_alarm); | 512 | disable_irq_wake(omap_rtc_alarm); |
530 | else | 513 | else |