.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com> |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License as published by |
---|
6 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
7 | | - * (at your option) any later version. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 4 | */ |
---|
14 | 5 | |
---|
15 | 6 | #include <linux/io.h> |
---|
.. | .. |
---|
185 | 176 | { |
---|
186 | 177 | struct device *dev = &pdev->dev; |
---|
187 | 178 | struct uniphier_system_bus_priv *priv; |
---|
188 | | - struct resource *regs; |
---|
189 | 179 | const __be32 *ranges; |
---|
190 | 180 | u32 cells, addr, size; |
---|
191 | 181 | u64 paddr; |
---|
.. | .. |
---|
195 | 185 | if (!priv) |
---|
196 | 186 | return -ENOMEM; |
---|
197 | 187 | |
---|
198 | | - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
199 | | - priv->membase = devm_ioremap_resource(dev, regs); |
---|
| 188 | + priv->membase = devm_platform_ioremap_resource(pdev, 0); |
---|
200 | 189 | if (IS_ERR(priv->membase)) |
---|
201 | 190 | return PTR_ERR(priv->membase); |
---|
202 | 191 | |
---|