Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113116
b: refs/heads/master
c: ab138c0
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Sep 10, 2008
1 parent 16d5719 commit 6c207cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 90158d84eb20fa15e3c8010b570f3ea2c925121d
refs/heads/master: ab138c031f72f6d030afa1a06a3a537e85ae843e
9 changes: 6 additions & 3 deletions trunk/arch/sparc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,12 @@ static int sbus_do_settimeofday(struct timespec *tv)
static int set_rtc_mmss(unsigned long secs)
{
struct rtc_device *rtc = rtc_class_open("rtc0");
int err = -1;

if (rtc)
return rtc_set_mmss(rtc, secs);
if (rtc) {
err = rtc_set_mmss(rtc, secs);
rtc_class_close(rtc);
}

return -1;
return err;
}

0 comments on commit 6c207cd

Please sign in to comment.