Commit d7c7ef90 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

rtc-bfin: add debug markers to suspend/resume paths

The rest of the driver had debug markings already.  This also standardizes
the usage of "dev" a bit.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Acked-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 286f9f95
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Blackfin On-Chip Real Time Clock Driver * Blackfin On-Chip Real Time Clock Driver
* Supports BF51x/BF52x/BF53[123]/BF53[467]/BF54x * 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/ * Enter bugs at http://blackfin.uclinux.org/
* *
...@@ -427,9 +427,13 @@ static int __devexit bfin_rtc_remove(struct platform_device *pdev) ...@@ -427,9 +427,13 @@ static int __devexit bfin_rtc_remove(struct platform_device *pdev)
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state) 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); enable_irq_wake(IRQ_RTC);
bfin_rtc_sync_pending(&pdev->dev); bfin_rtc_sync_pending(dev);
} else } else
bfin_rtc_int_clear(0); bfin_rtc_int_clear(0);
...@@ -438,7 +442,11 @@ static int bfin_rtc_suspend(struct platform_device *pdev, pm_message_t state) ...@@ -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) 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); disable_irq_wake(IRQ_RTC);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment