hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/rtc/rtc-ds1553.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * An rtc driver for the Dallas DS1553
34 *
45 * Copyright (C) 2006 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
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
118 #include <linux/bcd.h>
....@@ -252,7 +249,6 @@
252249
253250 static int ds1553_rtc_probe(struct platform_device *pdev)
254251 {
255
- struct resource *res;
256252 unsigned int cen, sec;
257253 struct rtc_plat_data *pdata;
258254 void __iomem *ioaddr;
....@@ -271,8 +267,7 @@
271267 if (!pdata)
272268 return -ENOMEM;
273269
274
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
275
- ioaddr = devm_ioremap_resource(&pdev->dev, res);
270
+ ioaddr = devm_platform_ioremap_resource(pdev, 0);
276271 if (IS_ERR(ioaddr))
277272 return PTR_ERR(ioaddr);
278273 pdata->ioaddr = ioaddr;