hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/shwdt.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * drivers/watchdog/shwdt.c
34 *
45 * Watchdog driver for integrated watchdog in the SuperH processors.
56 *
67 * Copyright (C) 2001 - 2012 Paul Mundt <lethal@linux-sh.org>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 *
139 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
1410 * Added nowayout module option to override CONFIG_WATCHDOG_NOWAYOUT
....@@ -220,7 +216,6 @@
220216 static int sh_wdt_probe(struct platform_device *pdev)
221217 {
222218 struct sh_wdt *wdt;
223
- struct resource *res;
224219 int rc;
225220
226221 /*
....@@ -245,8 +240,7 @@
245240 wdt->clk = NULL;
246241 }
247242
248
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
249
- wdt->base = devm_ioremap_resource(wdt->dev, res);
243
+ wdt->base = devm_platform_ioremap_resource(pdev, 0);
250244 if (IS_ERR(wdt->base))
251245 return PTR_ERR(wdt->base);
252246