]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/m68k/q40/config.c
m68k: use bcd2bin/bin2bcd
[linux-2.6-omap-h63xx.git] / arch / m68k / q40 / config.c
index be9de2f3dc48ee1da88283072e49a28890329122..9c7eefa3f98a133bd53d767b0edbf3f622993416 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/serial_reg.h>
 #include <linux/rtc.h>
 #include <linux/vt_kern.h>
+#include <linux/bcd.h>
 
 #include <asm/io.h>
 #include <asm/rtc.h>
@@ -216,17 +217,6 @@ int q40_parse_bootinfo(const struct bi_record *rec)
 }
 
 
-static inline unsigned char bcd2bin(unsigned char b)
-{
-       return (b >> 4) * 10 + (b & 15);
-}
-
-static inline unsigned char bin2bcd(unsigned char b)
-{
-       return (b / 10) * 16 + (b % 10);
-}
-
-
 static unsigned long q40_gettimeoffset(void)
 {
        return 5000 * (ql_ticks != 0);