diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:11:32 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:11:32 -0400 |
commit | af514ca7d27b31e3c278e1331f0ebdb3ad385a90 (patch) | |
tree | af5444786b8b9251e6a6f011ee71333025bb2c84 /arch/sh/boards/landisk | |
parent | 2991be725260d6fec11691a6138b9d71de949956 (diff) |
sh: Rename rtc_get/set_time() to avoid RTC_CLASS conflict.
We have a clash with RTC_CLASS over these names, so we
change them..
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/landisk')
-rw-r--r-- | arch/sh/boards/landisk/rtc.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/arch/sh/boards/landisk/rtc.c b/arch/sh/boards/landisk/rtc.c index d666aa63303f..35ba726a0979 100644 --- a/arch/sh/boards/landisk/rtc.c +++ b/arch/sh/boards/landisk/rtc.c | |||
@@ -16,17 +16,9 @@ | |||
16 | #include <linux/time.h> | 16 | #include <linux/time.h> |
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/spinlock.h> | 18 | #include <linux/spinlock.h> |
19 | #include <linux/bcd.h> | ||
20 | #include <asm/rtc.h> | ||
19 | 21 | ||
20 | #ifndef BCD_TO_BIN | ||
21 | #define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10) | ||
22 | #endif | ||
23 | |||
24 | #ifndef BIN_TO_BCD | ||
25 | #define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10) | ||
26 | #endif | ||
27 | |||
28 | extern void (*rtc_get_time) (struct timespec *); | ||
29 | extern int (*rtc_set_time) (const time_t); | ||
30 | extern spinlock_t rtc_lock; | 22 | extern spinlock_t rtc_lock; |
31 | 23 | ||
32 | extern void | 24 | extern void |
@@ -94,9 +86,8 @@ int landisk_rtc_settimeofday(const time_t secs) | |||
94 | return retval; | 86 | return retval; |
95 | } | 87 | } |
96 | 88 | ||
97 | |||
98 | void landisk_time_init(void) | 89 | void landisk_time_init(void) |
99 | { | 90 | { |
100 | rtc_get_time = landisk_rtc_gettimeofday; | 91 | rtc_sh_get_time = landisk_rtc_gettimeofday; |
101 | rtc_set_time = landisk_rtc_settimeofday; | 92 | rtc_sh_set_time = landisk_rtc_settimeofday; |
102 | } | 93 | } |