aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-sh03/setup.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-24 16:08:13 +0100
committerArnd Bergmann <arnd@arndb.de>2018-12-18 16:13:04 +0100
commit09e81263e5013ce5add177d50c0b1da0725ce266 (patch)
tree8a8697351c5033109a5d097307d1f573acbf5b52 /arch/sh/boards/mach-sh03/setup.c
parentsh: dreamcast: rtc: push down rtc class ops into driver (diff)
downloadlinux-dev-09e81263e5013ce5add177d50c0b1da0725ce266.tar.xz
linux-dev-09e81263e5013ce5add177d50c0b1da0725ce266.zip
sh: sh03: rtc: push down rtc class ops into driver
The SH RTC support has an extra level of indirection to provide either the old read_persistent_clock/update_persistent_clock interface or the rtc-generic device for hctosys/systohc. By removing the indirection and always using the RTC_CLASS interface, we can avoid the lossy double conversion between rtc_time and timespec, so we end up supporting the entire range of 'year' values, and clarifying the rtc_set_time callback. I did not change the behavior of sh03_rtc_settimeofday(), which keeps just updating the seconds/minutes by calling set_rtc_mmss(), this could be improved if anyone cares. Also, the file should ideally be moved into drivers/rtc and not use rtc-generic. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to '')
-rw-r--r--arch/sh/boards/mach-sh03/setup.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/sh/boards/mach-sh03/setup.c b/arch/sh/boards/mach-sh03/setup.c
index 85e7059a77e9..3901b6031ad5 100644
--- a/arch/sh/boards/mach-sh03/setup.c
+++ b/arch/sh/boards/mach-sh03/setup.c
@@ -22,14 +22,6 @@ static void __init init_sh03_IRQ(void)
plat_irq_setup_pins(IRQ_MODE_IRQ);
}
-/* arch/sh/boards/sh03/rtc.c */
-void sh03_time_init(void);
-
-static void __init sh03_setup(char **cmdline_p)
-{
- board_time_init = sh03_time_init;
-}
-
static struct resource cf_ide_resources[] = {
[0] = {
.start = 0x1f0,
@@ -101,6 +93,5 @@ device_initcall(sh03_devices_setup);
static struct sh_machine_vector mv_sh03 __initmv = {
.mv_name = "Interface (CTP/PCI-SH03)",
- .mv_setup = sh03_setup,
.mv_init_irq = init_sh03_IRQ,
};