summaryrefslogtreecommitdiff
path: root/arch/sh/boards/mach-sh03/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-01-24 18:08:13 +0300
committerArnd Bergmann <arnd@arndb.de>2018-12-18 18:13:04 +0300
commit09e81263e5013ce5add177d50c0b1da0725ce266 (patch)
tree8a8697351c5033109a5d097307d1f573acbf5b52 /arch/sh/boards/mach-sh03/Makefile
parentb0495e4b67b230cdb8a7ba244cd260e529c53b84 (diff)
downloadlinux-09e81263e5013ce5add177d50c0b1da0725ce266.tar.xz
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 'arch/sh/boards/mach-sh03/Makefile')
-rw-r--r--arch/sh/boards/mach-sh03/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-sh03/Makefile b/arch/sh/boards/mach-sh03/Makefile
index 400306a796ec..47007a3a2fc8 100644
--- a/arch/sh/boards/mach-sh03/Makefile
+++ b/arch/sh/boards/mach-sh03/Makefile
@@ -2,4 +2,5 @@
# Makefile for the Interface (CTP/PCI-SH03) specific parts of the kernel
#
-obj-y := setup.o rtc.o
+obj-y := setup.o
+obj-$(CONFIG_RTC_DRV_GENERIC) += rtc.o