diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-05-30 14:57:54 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-06-03 18:23:03 -0400 |
commit | 7ee942179fd8d485cedaf1875f81c5ee7a3ebeae (patch) | |
tree | a9d8f90838bc925335300ed2b15dfa3111342409 | |
parent | 1cb1e35327b0cb95f33ab39365bc745e8399f384 (diff) |
char/genrtc: remove mn10300 support
The genrtc driver serves no purpose on mn10300 because it drives the
same hardware as the original rtc.c driver, and the newer rtc-generic.c
or rtc-cmos.c drivers on architectures that use the asm-generic/rtc.h
header.
I assume it was initially only added for completeness when the
mn10300 port was done, but the older rtc.c driver was always used
instead.
We can also stop include asm-generic/rtc.h now, because we
just call mc146818_set_time() directly.
It would be nice to change the architecture to use the rtc-cmos driver
next, and remove support for the old rtc driver as well.
[linux@roeck-us.net: Add missing include file to proc-init.c]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r-- | arch/mn10300/include/asm/rtc.h | 2 | ||||
-rw-r--r-- | arch/mn10300/kernel/rtc.c | 2 | ||||
-rw-r--r-- | arch/mn10300/proc-mn103e010/proc-init.c | 2 | ||||
-rw-r--r-- | arch/mn10300/proc-mn2ws0050/proc-init.c | 1 | ||||
-rw-r--r-- | drivers/char/Kconfig | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/arch/mn10300/include/asm/rtc.h b/arch/mn10300/include/asm/rtc.h index 6c14bb1d0d9b..07dc87656197 100644 --- a/arch/mn10300/include/asm/rtc.h +++ b/arch/mn10300/include/asm/rtc.h | |||
@@ -25,6 +25,4 @@ static inline void calibrate_clock(void) | |||
25 | 25 | ||
26 | #endif /* !CONFIG_MN10300_RTC */ | 26 | #endif /* !CONFIG_MN10300_RTC */ |
27 | 27 | ||
28 | #include <asm-generic/rtc.h> | ||
29 | |||
30 | #endif /* _ASM_RTC_H */ | 28 | #endif /* _ASM_RTC_H */ |
diff --git a/arch/mn10300/kernel/rtc.c b/arch/mn10300/kernel/rtc.c index 48d7058b3295..77e0be4d92ea 100644 --- a/arch/mn10300/kernel/rtc.c +++ b/arch/mn10300/kernel/rtc.c | |||
@@ -27,7 +27,7 @@ void read_persistent_clock(struct timespec *ts) | |||
27 | { | 27 | { |
28 | struct rtc_time tm; | 28 | struct rtc_time tm; |
29 | 29 | ||
30 | get_rtc_time(&tm); | 30 | mc146818_set_time(&tm); |
31 | 31 | ||
32 | ts->tv_nsec = 0; | 32 | ts->tv_nsec = 0; |
33 | ts->tv_sec = mktime(tm.tm_year, tm.tm_mon, tm.tm_mday, | 33 | ts->tv_sec = mktime(tm.tm_year, tm.tm_mon, tm.tm_mday, |
diff --git a/arch/mn10300/proc-mn103e010/proc-init.c b/arch/mn10300/proc-mn103e010/proc-init.c index 27b97980dca4..94641c420b3f 100644 --- a/arch/mn10300/proc-mn103e010/proc-init.c +++ b/arch/mn10300/proc-mn103e010/proc-init.c | |||
@@ -9,7 +9,9 @@ | |||
9 | * 2 of the Licence, or (at your option) any later version. | 9 | * 2 of the Licence, or (at your option) any later version. |
10 | */ | 10 | */ |
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <asm/cacheflush.h> | ||
12 | #include <asm/fpu.h> | 13 | #include <asm/fpu.h> |
14 | #include <asm/irq.h> | ||
13 | #include <asm/rtc.h> | 15 | #include <asm/rtc.h> |
14 | #include <asm/busctl-regs.h> | 16 | #include <asm/busctl-regs.h> |
15 | 17 | ||
diff --git a/arch/mn10300/proc-mn2ws0050/proc-init.c b/arch/mn10300/proc-mn2ws0050/proc-init.c index ee6d03dbc8d8..950cc8dbb284 100644 --- a/arch/mn10300/proc-mn2ws0050/proc-init.c +++ b/arch/mn10300/proc-mn2ws0050/proc-init.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
16 | 16 | ||
17 | #include <asm/cacheflush.h> | ||
17 | #include <asm/processor.h> | 18 | #include <asm/processor.h> |
18 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
19 | #include <asm/io.h> | 20 | #include <asm/io.h> |
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index e3f2f3e293e5..1d9e3063373b 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig | |||
@@ -328,7 +328,7 @@ config JS_RTC | |||
328 | config GEN_RTC | 328 | config GEN_RTC |
329 | tristate "Generic /dev/rtc emulation" | 329 | tristate "Generic /dev/rtc emulation" |
330 | depends on RTC!=y | 330 | depends on RTC!=y |
331 | depends on M68K || MN10300 || PARISC || PPC | 331 | depends on M68K || PARISC || PPC |
332 | ---help--- | 332 | ---help--- |
333 | If you say Y here and create a character special file /dev/rtc with | 333 | If you say Y here and create a character special file /dev/rtc with |
334 | major number 10 and minor number 135 using mknod ("man mknod"), you | 334 | major number 10 and minor number 135 using mknod ("man mknod"), you |