From: Jean Delvare Date: Thu, 23 Mar 2006 11:00:09 +0000 (-0800) Subject: [PATCH] m68k: rtc driver cleanup X-Git-Tag: MMI-PSA29.97-13-9~51482 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8e31edc10d160a8bf2159541d9d12f2079a0887;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] m68k: rtc driver cleanup Use the standard BCD macros instead of redefining them. Signed-off-by: Jean Delvare Cc: Geert Uytterhoeven Cc: Roman Zippel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/m68k/bvme6000/rtc.c b/arch/m68k/bvme6000/rtc.c index 703cbc6dc9cc..15c16b62dff5 100644 --- a/arch/m68k/bvme6000/rtc.c +++ b/arch/m68k/bvme6000/rtc.c @@ -18,6 +18,7 @@ #include #include /* For struct rtc_time and ioctls, etc */ #include +#include #include #include @@ -32,9 +33,6 @@ * ioctls. */ -#define BCD2BIN(val) (((val)&15) + ((val)>>4)*10) -#define BIN2BCD(val) ((((val)/10)<<4) + (val)%10) - static unsigned char days_in_mo[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};