hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/irqchip/irq-uniphier-aidet.c
....@@ -1,17 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for UniPhier AIDET (ARM Interrupt Detector)
34 *
45 * Copyright (C) 2017 Socionext Inc.
56 * 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.
157 */
168
179 #include <linux/bitops.h>
....@@ -174,7 +166,6 @@
174166 struct device_node *parent_np;
175167 struct irq_domain *parent_domain;
176168 struct uniphier_aidet_priv *priv;
177
- struct resource *res;
178169
179170 parent_np = of_irq_find_parent(dev->of_node);
180171 if (!parent_np)
....@@ -189,8 +180,7 @@
189180 if (!priv)
190181 return -ENOMEM;
191182
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);
194184 if (IS_ERR(priv->reg_base))
195185 return PTR_ERR(priv->reg_base);
196186