diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-30 10:16:51 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-05-08 16:14:36 -0400 |
commit | a01ab0669ddf652f521630129e614c16542994b0 (patch) | |
tree | fb5d556e8286f1d188ddc3c7d97d344c7ea1bd1f /drivers/rtc/interface.c | |
parent | f5fae395663a47e7cdfa37c36cf6689f495c4ab2 (diff) |
rtc: drop set_mms and set_mmss64
There are no users of set_mms and set_mmss64 as they have all been
converted to set_time and are handling the tm to time conversion on their
own.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/interface.c')
-rw-r--r-- | drivers/rtc/interface.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index 56ed0c3a8c85..4124f4dd376b 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c | |||
@@ -145,12 +145,6 @@ int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) | |||
145 | err = -ENODEV; | 145 | err = -ENODEV; |
146 | else if (rtc->ops->set_time) | 146 | else if (rtc->ops->set_time) |
147 | err = rtc->ops->set_time(rtc->dev.parent, tm); | 147 | err = rtc->ops->set_time(rtc->dev.parent, tm); |
148 | else if (rtc->ops->set_mmss64) | ||
149 | err = rtc->ops->set_mmss64(rtc->dev.parent, | ||
150 | rtc_tm_to_time64(tm)); | ||
151 | else if (rtc->ops->set_mmss) | ||
152 | err = rtc->ops->set_mmss(rtc->dev.parent, | ||
153 | rtc_tm_to_time64(tm)); | ||
154 | else | 148 | else |
155 | err = -EINVAL; | 149 | err = -EINVAL; |
156 | 150 | ||