Skip to contentSkip to conversation

rtc: ds1337: Remove various legacy code and update dependencies

PATCH In review Tom Rini 1 participant 2 messages Mar 20 – Apr 3 Real time clock (RTC)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 rtc: ds1337: Remove various legacy code and update dependencies

At this point there are no users of this driver which do not enable DM_RTC, so remove the legacy code and express the depdendency in Kconfig. We can further remove code related to RTC chips / options that are neither available in Kconfig nor set by any platforms.

---
 drivers/rtc/Kconfig  |   1 +
 drivers/rtc/ds1337.c | 156 +------------------------------------------
 2 files changed, 2 insertions(+), 155 deletions(-)
drivers/rtc/Kconfig +1 -0
index cb0a672668ea..648948cc735e 100644
@@ -73,6 +73,7 @@ config RTC_DS1307
 
 config RTC_DS1337
 	bool "Enable DS1337 driver"
+	depends on DM_RTC
 	help
 	  Support for Dallas Semiconductor (now Maxim) DS1337/8/9 compatible
 	  Real Time Clock devices.
drivers/rtc/ds1337.c +1 -155

190 lines not on this page · raw message

Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

At this point there are no users of this driver which do not enable DM_RTC, so remove the legacy code and express the depdendency in Kconfig. We can further remove code related to RTC chips / options that are neither available in Kconfig nor set by any platforms.

Applied to u-boot/next, thanks!

[1/1] rtc: ds1337: Remove various legacy code and update dependencies

      commit: 8c1ffb09d5bda6e94b71fac60aad7f1b1ba4d16a
Signature · 1 line
Tom