1 --- a/arch/mips/sibyte/swarm/setup.c
2 +++ b/arch/mips/sibyte/swarm/setup.c
3 @@ -56,14 +56,6 @@ extern void sb1250_setup(void);
4 #error invalid SiByte board configuration
7 -extern int xicor_probe(void);
8 -extern int xicor_set_time(unsigned long);
9 -extern unsigned long xicor_get_time(void);
11 -extern int m41t81_probe(void);
12 -extern int m41t81_set_time(unsigned long);
13 -extern unsigned long m41t81_get_time(void);
15 const char *get_system_type(void)
17 return "SiByte " SIBYTE_BOARD_NAME;
18 @@ -79,49 +71,18 @@ int swarm_be_handler(struct pt_regs *reg
19 return (is_fixup ? MIPS_BE_FIXUP : MIPS_BE_FATAL);
22 -enum swarm_rtc_type {
28 -enum swarm_rtc_type swarm_rtc_type;
30 void read_persistent_clock(struct timespec *ts)
34 - switch (swarm_rtc_type) {
36 - sec = xicor_get_time();
40 - sec = m41t81_get_time();
45 - sec = mktime(2000, 1, 1, 0, 0, 0);
48 + sec = mktime(2000, 1, 1, 0, 0, 0);
53 int rtc_mips_set_time(unsigned long sec)
55 - switch (swarm_rtc_type) {
57 - return xicor_set_time(sec);
60 - return m41t81_set_time(sec);
68 void __init plat_mem_setup(void)
69 @@ -138,11 +99,6 @@ void __init plat_mem_setup(void)
71 board_be_handler = swarm_be_handler;
74 - swarm_rtc_type = RTC_XICOR;
76 - swarm_rtc_type = RTC_M41T81;
79 screen_info = (struct screen_info) {
80 .orig_video_page = 52,