diff options
Diffstat (limited to 'arch/m68k/bvme6000/config.c')
-rw-r--r-- | arch/m68k/bvme6000/config.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/m68k/bvme6000/config.c b/arch/m68k/bvme6000/config.c index 9433a88a33c4..65c9204ab9ac 100644 --- a/arch/m68k/bvme6000/config.c +++ b/arch/m68k/bvme6000/config.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/genhd.h> | 25 | #include <linux/genhd.h> |
26 | #include <linux/rtc.h> | 26 | #include <linux/rtc.h> |
27 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
28 | #include <linux/bcd.h> | ||
28 | 29 | ||
29 | #include <asm/bootinfo.h> | 30 | #include <asm/bootinfo.h> |
30 | #include <asm/system.h> | 31 | #include <asm/system.h> |
@@ -46,9 +47,6 @@ extern void bvme6000_reset (void); | |||
46 | extern void bvme6000_waitbut(void); | 47 | extern void bvme6000_waitbut(void); |
47 | void bvme6000_set_vectors (void); | 48 | void bvme6000_set_vectors (void); |
48 | 49 | ||
49 | static unsigned char bcd2bin (unsigned char b); | ||
50 | static unsigned char bin2bcd (unsigned char b); | ||
51 | |||
52 | /* Save tick handler routine pointer, will point to do_timer() in | 50 | /* Save tick handler routine pointer, will point to do_timer() in |
53 | * kernel/sched.c, called via bvme6000_process_int() */ | 51 | * kernel/sched.c, called via bvme6000_process_int() */ |
54 | 52 | ||
@@ -264,17 +262,6 @@ unsigned long bvme6000_gettimeoffset (void) | |||
264 | return v; | 262 | return v; |
265 | } | 263 | } |
266 | 264 | ||
267 | static unsigned char bcd2bin (unsigned char b) | ||
268 | { | ||
269 | return ((b>>4)*10 + (b&15)); | ||
270 | } | ||
271 | |||
272 | static unsigned char bin2bcd (unsigned char b) | ||
273 | { | ||
274 | return (((b/10)*16) + (b%10)); | ||
275 | } | ||
276 | |||
277 | |||
278 | /* | 265 | /* |
279 | * Looks like op is non-zero for setting the clock, and zero for | 266 | * Looks like op is non-zero for setting the clock, and zero for |
280 | * reading the clock. | 267 | * reading the clock. |