Skip to content

Commit f52ef24

Browse files
arndbgregkh
authored andcommitted
rtc/alpha: remove legacy rtc driver
The old drivers/char/rtc.c driver was originally the implementation for x86 PCs but got subsequently replaced by the rtc class driver on all architectures except alpha. Move alpha over to the portable driver and remove the old one for good. The CONFIG_JS_RTC option was only ever used on SPARC32 but has not been available for many years, this was used to build the same rtc driver with a different module name. Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Cc: linux-alpha@vger.kernel.org Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20200226224322.187960-2-alexandre.belloni@bootlin.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8067c0b commit f52ef24

4 files changed

Lines changed: 2 additions & 1372 deletions

File tree

‎arch/alpha/configs/defconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ CONFIG_NET_PCI=y
5353
CONFIG_YELLOWFIN=y
5454
CONFIG_SERIAL_8250=y
5555
CONFIG_SERIAL_8250_CONSOLE=y
56-
CONFIG_RTC=y
56+
CONFIG_RTC_CLASS=y
57+
CONFIG_RTC_DRV_CMOS=y
5758
CONFIG_EXT2_FS=y
5859
CONFIG_REISERFS_FS=m
5960
CONFIG_ISO9660_FS=y

‎drivers/char/Kconfig‎

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -196,62 +196,6 @@ config NWFLASH
196196

197197
source "drivers/char/hw_random/Kconfig"
198198

199-
#
200-
# These legacy RTC drivers just cause too many conflicts with the generic
201-
# RTC framework ... let's not even try to coexist any more.
202-
#
203-
if RTC_LIB=n
204-
205-
config RTC
206-
tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)"
207-
depends on ALPHA
208-
---help---
209-
If you say Y here and create a character special file /dev/rtc with
210-
major number 10 and minor number 135 using mknod ("man mknod"), you
211-
will get access to the real time clock (or hardware clock) built
212-
into your computer.
213-
214-
Every PC has such a clock built in. It can be used to generate
215-
signals from as low as 1Hz up to 8192Hz, and can also be used
216-
as a 24 hour alarm. It reports status information via the file
217-
/proc/driver/rtc and its behaviour is set by various ioctls on
218-
/dev/rtc.
219-
220-
If you run Linux on a multiprocessor machine and said Y to
221-
"Symmetric Multi Processing" above, you should say Y here to read
222-
and set the RTC in an SMP compatible fashion.
223-
224-
If you think you have a use for such a device (such as periodic data
225-
sampling), then say Y here, and read <file:Documentation/admin-guide/rtc.rst>
226-
for details.
227-
228-
To compile this driver as a module, choose M here: the
229-
module will be called rtc.
230-
231-
config JS_RTC
232-
tristate "Enhanced Real Time Clock Support"
233-
depends on SPARC32 && PCI
234-
---help---
235-
If you say Y here and create a character special file /dev/rtc with
236-
major number 10 and minor number 135 using mknod ("man mknod"), you
237-
will get access to the real time clock (or hardware clock) built
238-
into your computer.
239-
240-
Every PC has such a clock built in. It can be used to generate
241-
signals from as low as 1Hz up to 8192Hz, and can also be used
242-
as a 24 hour alarm. It reports status information via the file
243-
/proc/driver/rtc and its behaviour is set by various ioctls on
244-
/dev/rtc.
245-
246-
If you think you have a use for such a device (such as periodic data
247-
sampling), then say Y here, and read <file:Documentation/admin-guide/rtc.rst>
248-
for details.
249-
250-
To compile this driver as a module, choose M here: the
251-
module will be called js-rtc.
252-
253-
endif # RTC_LIB
254-
255199
config DTLK
256200
tristate "Double Talk PC internal speech card support"
257201
depends on ISA

‎drivers/char/Makefile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ obj-$(CONFIG_APM_EMULATION) += apm-emulation.o
2020
obj-$(CONFIG_DTLK) += dtlk.o
2121
obj-$(CONFIG_APPLICOM) += applicom.o
2222
obj-$(CONFIG_SONYPI) += sonypi.o
23-
obj-$(CONFIG_RTC) += rtc.o
2423
obj-$(CONFIG_HPET) += hpet.o
2524
obj-$(CONFIG_XILINX_HWICAP) += xilinx_hwicap/
2625
obj-$(CONFIG_NVRAM) += nvram.o
@@ -45,9 +44,6 @@ obj-$(CONFIG_TCG_TPM) += tpm/
4544

4645
obj-$(CONFIG_PS3_FLASH) += ps3flash.o
4746

48-
obj-$(CONFIG_JS_RTC) += js-rtc.o
49-
js-rtc-y = rtc.o
50-
5147
obj-$(CONFIG_XILLYBUS) += xillybus/
5248
obj-$(CONFIG_POWERNV_OP_PANEL) += powernv-op-panel.o
5349
obj-$(CONFIG_ADI) += adi.o

0 commit comments

Comments
 (0)