Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350164
b: refs/heads/master
c: 9ecf37e
h: refs/heads/master
v: v3
  • Loading branch information
Feng Tang authored and John Stultz committed Jan 16, 2013
1 parent 585ca72 commit ff9f09b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31ade30692dc9680bfc95700d794818fa3f754ac
refs/heads/master: 9ecf37eb7a81e3295a1b274eafb6f83d7d2cabf0
7 changes: 7 additions & 0 deletions trunk/drivers/rtc/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ static int rtc_suspend(struct device *dev, pm_message_t mesg)
struct rtc_device *rtc = to_rtc_device(dev);
struct rtc_time tm;
struct timespec delta, delta_delta;

if (has_persistent_clock())
return 0;

if (strcmp(dev_name(&rtc->dev), CONFIG_RTC_HCTOSYS_DEVICE) != 0)
return 0;

Expand Down Expand Up @@ -88,6 +92,9 @@ static int rtc_resume(struct device *dev)
struct timespec new_system, new_rtc;
struct timespec sleep_time;

if (has_persistent_clock())
return 0;

rtc_hctosys_ret = -ENODEV;
if (strcmp(dev_name(&rtc->dev), CONFIG_RTC_HCTOSYS_DEVICE) != 0)
return 0;
Expand Down

0 comments on commit ff9f09b

Please sign in to comment.