Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115970
b: refs/heads/master
c: f6a2298
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Oct 20, 2008
1 parent 7da81bf commit 6e627d5
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 02112dbc925f664bc4d24ff098686b9d21bfbfb1
refs/heads/master: f6a2298c5fd1f074aa3626febea33f48cd3b5a94
6 changes: 3 additions & 3 deletions trunk/arch/mn10300/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static int set_rtc_mmss(unsigned long nowtime)

cmos_minutes = CMOS_READ(RTC_MINUTES);
if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD)
BCD_TO_BIN(cmos_minutes);
cmos_minutes = bcd2bin(cmos_minutes);

/*
* since we're only adjusting minutes and seconds,
Expand All @@ -84,8 +84,8 @@ static int set_rtc_mmss(unsigned long nowtime)

if (abs(real_minutes - cmos_minutes) < 30) {
if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) {
BIN_TO_BCD(real_seconds);
BIN_TO_BCD(real_minutes);
real_seconds = bin2bcd(real_seconds);
real_minutes = bin2bcd(real_minutes);
}
CMOS_WRITE(real_seconds, RTC_SECONDS);
CMOS_WRITE(real_minutes, RTC_MINUTES);
Expand Down

0 comments on commit 6e627d5

Please sign in to comment.