hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/rtc/rtc-stk17ta8.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * A RTC driver for the Simtek STK17TA8
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Based on the DS1553 driver from
78 * Atsushi Nemoto <anemo@mba.ocn.ne.jp>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
129 */
1310
1411 #include <linux/bcd.h>
....@@ -259,7 +256,6 @@
259256
260257 static int stk17ta8_rtc_probe(struct platform_device *pdev)
261258 {
262
- struct resource *res;
263259 unsigned int cal;
264260 unsigned int flags;
265261 struct rtc_plat_data *pdata;
....@@ -278,8 +274,7 @@
278274 if (!pdata)
279275 return -ENOMEM;
280276
281
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
282
- ioaddr = devm_ioremap_resource(&pdev->dev, res);
277
+ ioaddr = devm_platform_ioremap_resource(pdev, 0);
283278 if (IS_ERR(ioaddr))
284279 return PTR_ERR(ioaddr);
285280 pdata->ioaddr = ioaddr;