hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/rtc/rtc-mrst.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * rtc-mrst.c: Driver for Moorestown virtual RTC
34 *
45 * (C) Copyright 2009 Intel Corporation
56 * Author: Jacob Pan (jacob.jun.pan@intel.com)
67 * Feng Tang (feng.tang@intel.com)
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * as published by the Free Software Foundation; version 2
11
- * of the License.
128 *
139 * Note:
1410 * VRTC is emulated by system controller firmware, the real HW
....@@ -90,7 +86,7 @@
9086 unsigned long flags;
9187
9288 if (vrtc_is_updating())
93
- mdelay(20);
89
+ msleep(20);
9490
9591 spin_lock_irqsave(&rtc_lock, flags);
9692 time->tm_sec = vrtc_cmos_read(RTC_SECONDS);
....@@ -261,11 +257,10 @@
261257
262258 static int mrst_procfs(struct device *dev, struct seq_file *seq)
263259 {
264
- unsigned char rtc_control, valid;
260
+ unsigned char rtc_control;
265261
266262 spin_lock_irq(&rtc_lock);
267263 rtc_control = vrtc_cmos_read(RTC_CONTROL);
268
- valid = vrtc_cmos_read(RTC_VALID);
269264 spin_unlock_irq(&rtc_lock);
270265
271266 seq_printf(seq,