.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for UniPhier AIDET (ARM Interrupt Detector) |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2017 Socionext Inc. |
---|
5 | 6 | * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | 7 | */ |
---|
16 | 8 | |
---|
17 | 9 | #include <linux/bitops.h> |
---|
.. | .. |
---|
174 | 166 | struct device_node *parent_np; |
---|
175 | 167 | struct irq_domain *parent_domain; |
---|
176 | 168 | struct uniphier_aidet_priv *priv; |
---|
177 | | - struct resource *res; |
---|
178 | 169 | |
---|
179 | 170 | parent_np = of_irq_find_parent(dev->of_node); |
---|
180 | 171 | if (!parent_np) |
---|
.. | .. |
---|
189 | 180 | if (!priv) |
---|
190 | 181 | return -ENOMEM; |
---|
191 | 182 | |
---|
192 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
193 | | - priv->reg_base = devm_ioremap_resource(dev, res); |
---|
| 183 | + priv->reg_base = devm_platform_ioremap_resource(pdev, 0); |
---|
194 | 184 | if (IS_ERR(priv->reg_base)) |
---|
195 | 185 | return PTR_ERR(priv->reg_base); |
---|
196 | 186 | |
---|