hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/txx9wdt.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * txx9wdt: A Hardware Watchdog Driver for TXx9 SoCs
34 *
45 * Copyright (C) 2007 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 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -103,7 +100,6 @@
103100
104101 static int __init txx9wdt_probe(struct platform_device *dev)
105102 {
106
- struct resource *res;
107103 int ret;
108104
109105 txx9_imclk = clk_get(NULL, "imbus_clk");
....@@ -119,8 +115,7 @@
119115 goto exit;
120116 }
121117
122
- res = platform_get_resource(dev, IORESOURCE_MEM, 0);
123
- txx9wdt_reg = devm_ioremap_resource(&dev->dev, res);
118
+ txx9wdt_reg = devm_platform_ioremap_resource(dev, 0);
124119 if (IS_ERR(txx9wdt_reg)) {
125120 ret = PTR_ERR(txx9wdt_reg);
126121 goto exit;