.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * drivers/watchdog/shwdt.c |
---|
3 | 4 | * |
---|
4 | 5 | * Watchdog driver for integrated watchdog in the SuperH processors. |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
12 | 8 | * |
---|
13 | 9 | * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com> |
---|
14 | 10 | * Added nowayout module option to override CONFIG_WATCHDOG_NOWAYOUT |
---|
.. | .. |
---|
220 | 216 | static int sh_wdt_probe(struct platform_device *pdev) |
---|
221 | 217 | { |
---|
222 | 218 | struct sh_wdt *wdt; |
---|
223 | | - struct resource *res; |
---|
224 | 219 | int rc; |
---|
225 | 220 | |
---|
226 | 221 | /* |
---|
.. | .. |
---|
245 | 240 | wdt->clk = NULL; |
---|
246 | 241 | } |
---|
247 | 242 | |
---|
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); |
---|
250 | 244 | if (IS_ERR(wdt->base)) |
---|
251 | 245 | return PTR_ERR(wdt->base); |
---|
252 | 246 | |
---|