.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * txx9wdt: A Hardware Watchdog Driver for TXx9 SoCs |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
9 | 6 | */ |
---|
10 | 7 | |
---|
11 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
103 | 100 | |
---|
104 | 101 | static int __init txx9wdt_probe(struct platform_device *dev) |
---|
105 | 102 | { |
---|
106 | | - struct resource *res; |
---|
107 | 103 | int ret; |
---|
108 | 104 | |
---|
109 | 105 | txx9_imclk = clk_get(NULL, "imbus_clk"); |
---|
.. | .. |
---|
119 | 115 | goto exit; |
---|
120 | 116 | } |
---|
121 | 117 | |
---|
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); |
---|
124 | 119 | if (IS_ERR(txx9wdt_reg)) { |
---|
125 | 120 | ret = PTR_ERR(txx9wdt_reg); |
---|
126 | 121 | goto exit; |
---|