forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/rtc/rtc-v3020.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* drivers/rtc/rtc-v3020.c
23 *
34 * Copyright (C) 2006 8D Technologies inc.
45 * Copyright (C) 2004 Compulab Ltd.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 *
107 * Driver for the V3020 RTC
118 *
....@@ -17,7 +14,6 @@
1714 *
1815 * ??-???-2004: Someone at Compulab
1916 * - Initial driver creation.
20
- *
2117 */
2218 #include <linux/platform_device.h>
2319 #include <linux/module.h>
....@@ -288,7 +284,6 @@
288284 struct v3020 *chip;
289285 int retval = -EBUSY;
290286 int i;
291
- int temp;
292287
293288 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL);
294289 if (!chip)
....@@ -306,7 +301,7 @@
306301 /* Make sure the v3020 expects a communication cycle
307302 * by reading 8 times */
308303 for (i = 0; i < 8; i++)
309
- temp = chip->ops->read_bit(chip);
304
+ chip->ops->read_bit(chip);
310305
311306 /* Test chip by doing a write/read sequence
312307 * to the chip ram */