diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-01 06:32:13 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-09-01 06:32:13 -0400 |
commit | 9d7548d4ca3c52ecb58f098a32b0756cdf8f96ee (patch) | |
tree | 651f7058bbaa2d8b2855286380d614afcf505118 /arch/arm/mach-footbridge/time.c | |
parent | 31db6e9ea1dbdcf66b8227b4f7035dee1b1dd8c0 (diff) | |
parent | bef69ea0dcce574a425feb0a5aa4c63dd108b9a6 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/arm/mach-footbridge/time.c')
-rw-r--r-- | arch/arm/mach-footbridge/time.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-footbridge/time.c b/arch/arm/mach-footbridge/time.c index fd9a7c11d62d..004819ea85c8 100644 --- a/arch/arm/mach-footbridge/time.c +++ b/arch/arm/mach-footbridge/time.c | |||
@@ -49,12 +49,12 @@ static unsigned long __init get_isa_cmos_time(void) | |||
49 | } while (sec != CMOS_READ(RTC_SECONDS)); | 49 | } while (sec != CMOS_READ(RTC_SECONDS)); |
50 | 50 | ||
51 | if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { | 51 | if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { |
52 | BCD_TO_BIN(sec); | 52 | sec = bcd2bin(sec); |
53 | BCD_TO_BIN(min); | 53 | min = bcd2bin(min); |
54 | BCD_TO_BIN(hour); | 54 | hour = bcd2bin(hour); |
55 | BCD_TO_BIN(day); | 55 | day = bcd2bin(day); |
56 | BCD_TO_BIN(mon); | 56 | mon = bcd2bin(mon); |
57 | BCD_TO_BIN(year); | 57 | year = bcd2bin(year); |
58 | } | 58 | } |
59 | if ((year += 1900) < 1970) | 59 | if ((year += 1900) < 1970) |
60 | year += 100; | 60 | year += 100; |
@@ -76,7 +76,7 @@ static int set_isa_cmos_time(void) | |||
76 | 76 | ||
77 | cmos_minutes = CMOS_READ(RTC_MINUTES); | 77 | cmos_minutes = CMOS_READ(RTC_MINUTES); |
78 | if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) | 78 | if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) |
79 | BCD_TO_BIN(cmos_minutes); | 79 | cmos_minutes = bcd2bin(cmos_minutes); |
80 | 80 | ||
81 | /* | 81 | /* |
82 | * since we're only adjusting minutes and seconds, | 82 | * since we're only adjusting minutes and seconds, |
@@ -92,8 +92,8 @@ static int set_isa_cmos_time(void) | |||
92 | 92 | ||
93 | if (abs(real_minutes - cmos_minutes) < 30) { | 93 | if (abs(real_minutes - cmos_minutes) < 30) { |
94 | if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { | 94 | if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { |
95 | BIN_TO_BCD(real_seconds); | 95 | real_seconds = bin2bcd(real_seconds); |
96 | BIN_TO_BCD(real_minutes); | 96 | real_minutes = bin2bcd(real_minutes); |
97 | } | 97 | } |
98 | CMOS_WRITE(real_seconds,RTC_SECONDS); | 98 | CMOS_WRITE(real_seconds,RTC_SECONDS); |
99 | CMOS_WRITE(real_minutes,RTC_MINUTES); | 99 | CMOS_WRITE(real_minutes,RTC_MINUTES); |