.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* drivers/rtc/rtc-v3020.c |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2006 8D Technologies inc. |
---|
4 | 5 | * 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. |
---|
9 | 6 | * |
---|
10 | 7 | * Driver for the V3020 RTC |
---|
11 | 8 | * |
---|
.. | .. |
---|
17 | 14 | * |
---|
18 | 15 | * ??-???-2004: Someone at Compulab |
---|
19 | 16 | * - Initial driver creation. |
---|
20 | | - * |
---|
21 | 17 | */ |
---|
22 | 18 | #include <linux/platform_device.h> |
---|
23 | 19 | #include <linux/module.h> |
---|
.. | .. |
---|
288 | 284 | struct v3020 *chip; |
---|
289 | 285 | int retval = -EBUSY; |
---|
290 | 286 | int i; |
---|
291 | | - int temp; |
---|
292 | 287 | |
---|
293 | 288 | chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); |
---|
294 | 289 | if (!chip) |
---|
.. | .. |
---|
306 | 301 | /* Make sure the v3020 expects a communication cycle |
---|
307 | 302 | * by reading 8 times */ |
---|
308 | 303 | for (i = 0; i < 8; i++) |
---|
309 | | - temp = chip->ops->read_bit(chip); |
---|
| 304 | + chip->ops->read_bit(chip); |
---|
310 | 305 | |
---|
311 | 306 | /* Test chip by doing a write/read sequence |
---|
312 | 307 | * to the chip ram */ |
---|