rtc: class: support hctosys from modular RTC drivers
authorSteve Muckle <smuckle@google.com>
Wed, 6 Nov 2019 19:46:25 +0000 (11:46 -0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 23 Mar 2020 20:14:34 +0000 (21:14 +0100)
commitf9b2a4d6a5f18e0aaf715206a056565c56889d9f
treebdeca920791915a229977f6b345d2729f7fc0b24
parent34ce29774dadc24ac1a529c562c325db2b77c7b4
rtc: class: support hctosys from modular RTC drivers

Due to distribution constraints it may not be possible to statically
compile the required RTC driver into the kernel.

Expand RTC_HCTOSYS support to cover all RTC devices (statically compiled
or not) by checking at the end of RTC device registration whether the
time should be synced.

Signed-off-by: Steve Muckle <smuckle@google.com>
Link: https://lore.kernel.org/r/20191106194625.116692-1-smuckle@google.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/class.c
drivers/rtc/hctosys.c [deleted file]