Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: ep93xx: use .set_time

Use .set_time instead of the deprecated .set_mmss.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

+3 -2
+3 -2
drivers/rtc/rtc-ep93xx.c
··· 63 63 return 0; 64 64 } 65 65 66 - static int ep93xx_rtc_set_mmss(struct device *dev, unsigned long secs) 66 + static int ep93xx_rtc_set_time(struct device *dev, struct rtc_time *tm) 67 67 { 68 68 struct ep93xx_rtc *ep93xx_rtc = dev_get_platdata(dev); 69 + unsigned long secs = rtc_tm_to_time64(tm); 69 70 70 71 writel(secs + 1, ep93xx_rtc->mmio_base + EP93XX_RTC_LOAD); 71 72 return 0; ··· 86 85 87 86 static const struct rtc_class_ops ep93xx_rtc_ops = { 88 87 .read_time = ep93xx_rtc_read_time, 89 - .set_mmss = ep93xx_rtc_set_mmss, 88 + .set_time = ep93xx_rtc_set_time, 90 89 .proc = ep93xx_rtc_proc, 91 90 }; 92 91