aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mpc1211/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/mpc1211/rtc.c')
-rw-r--r--arch/sh/boards/mpc1211/rtc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/sh/boards/mpc1211/rtc.c b/arch/sh/boards/mpc1211/rtc.c
index 8ae2dc11d8e5..a76c655dceee 100644
--- a/arch/sh/boards/mpc1211/rtc.c
+++ b/arch/sh/boards/mpc1211/rtc.c
@@ -9,16 +9,9 @@
9#include <linux/kernel.h> 9#include <linux/kernel.h>
10#include <linux/sched.h> 10#include <linux/sched.h>
11#include <linux/time.h> 11#include <linux/time.h>
12#include <linux/bcd.h>
12#include <linux/mc146818rtc.h> 13#include <linux/mc146818rtc.h>
13 14
14#ifndef BCD_TO_BIN
15#define BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10)
16#endif
17
18#ifndef BIN_TO_BCD
19#define BIN_TO_BCD(val) ((val)=(((val)/10)<<4) + (val)%10)
20#endif
21
22unsigned long get_cmos_time(void) 15unsigned long get_cmos_time(void)
23{ 16{
24 unsigned int year, mon, day, hour, min, sec; 17 unsigned int year, mon, day, hour, min, sec;