hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/bus/uniphier-system-bus.c
....@@ -1,15 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * 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.
134 */
145
156 #include <linux/io.h>
....@@ -185,7 +176,6 @@
185176 {
186177 struct device *dev = &pdev->dev;
187178 struct uniphier_system_bus_priv *priv;
188
- struct resource *regs;
189179 const __be32 *ranges;
190180 u32 cells, addr, size;
191181 u64 paddr;
....@@ -195,8 +185,7 @@
195185 if (!priv)
196186 return -ENOMEM;
197187
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);
200189 if (IS_ERR(priv->membase))
201190 return PTR_ERR(priv->membase);
202191