dect
/
linux-2.6
Archived
13
0
Fork 0

sparc64: Fix return value in update_persistent_clock().

Noticed by Stephen Rothwell.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2008-09-10 13:35:08 -07:00
parent 503acc8a33
commit 90158d84eb
1 changed files with 2 additions and 2 deletions

View File

@ -396,14 +396,14 @@ static unsigned long timer_ticks_per_nsec_quotient __read_mostly;
int update_persistent_clock(struct timespec now)
{
struct rtc_device *rtc = rtc_class_open("rtc0");
int err;
int err = -1;
if (rtc) {
err = rtc_set_mmss(rtc, now.tv_sec);
rtc_class_close(rtc);
}
return -1;
return err;
}
unsigned long cmos_regs;