hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/rtc/systohc.c
....@@ -1,9 +1,4 @@
1
-/*
2
- * This program is free software; you can redistribute it and/or modify it
3
- * under the terms of the GNU General Public License version 2 as published by
4
- * the Free Software Foundation.
5
- *
6
- */
1
+// SPDX-License-Identifier: GPL-2.0
72 #include <linux/rtc.h>
83 #include <linux/time.h>
94
....@@ -35,8 +30,7 @@
3530 if (!rtc)
3631 goto out_err;
3732
38
- if (!rtc->ops || (!rtc->ops->set_time && !rtc->ops->set_mmss64 &&
39
- !rtc->ops->set_mmss))
33
+ if (!rtc->ops || !rtc->ops->set_time)
4034 goto out_close;
4135
4236 /* Compute the value of tv_nsec we require the caller to supply in
....@@ -58,9 +52,6 @@
5852
5953 rtc_time64_to_tm(to_set.tv_sec, &tm);
6054
61
- /* rtc_hctosys exclusively uses UTC, so we call set_time here, not
62
- * set_mmss.
63
- */
6455 err = rtc_set_time(rtc, &tm);
6556
6657 out_close: