Skip to content

Commit a746f50

Browse files
FlyGoattsbogend
authored andcommitted
MIPS: Loongson64: Remove dead RTC code
RTC is now enabled by devicetree. So platform code is no longer needed. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 7a6659a commit a746f50

5 files changed

Lines changed: 1 addition & 87 deletions

File tree

‎arch/mips/include/asm/mach-loongson64/mc146818rtc.h‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

‎arch/mips/loongson64/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,4 @@ config RS780_HPET
1414
If unsure, say Yes.
1515

1616

17-
config LOONGSON_MC146818
18-
bool
19-
default n
20-
2117
endif # MACH_LOONGSON64

‎arch/mips/loongson64/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ obj-$(CONFIG_SMP) += smp.o
99
obj-$(CONFIG_NUMA) += numa.o
1010
obj-$(CONFIG_RS780_HPET) += hpet.o
1111
obj-$(CONFIG_PCI) += pci.o
12-
obj-$(CONFIG_LOONGSON_MC146818) += rtc.o
1312
obj-$(CONFIG_SUSPEND) += pm.o

‎arch/mips/loongson64/rtc.c‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎arch/mips/loongson64/time.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (C) 2009 Lemote Inc.
77
* Author: Wu Zhangjin, wuzhangjin@gmail.com
88
*/
9-
#include <asm/mc146818-time.h>
9+
1010
#include <asm/time.h>
1111
#include <asm/hpet.h>
1212

@@ -21,9 +21,3 @@ void __init plat_time_init(void)
2121
setup_hpet_timer();
2222
#endif
2323
}
24-
25-
void read_persistent_clock64(struct timespec64 *ts)
26-
{
27-
ts->tv_sec = mc146818_get_cmos_time();
28-
ts->tv_nsec = 0;
29-
}

0 commit comments

Comments
 (0)