Skip to content

Commit 45453df

Browse files
alcharkKAGA-KOKO
authored andcommitted
irqchip/irq-vt8500: Drop redundant copy of the device node pointer
Inside vt8500_irq_init(), np is the same as node. Drop it. Signed-off-by: Alexey Charkov <alchark@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250506-vt8500-intc-updates-v2-2-a3a0606cf92d@gmail.com
1 parent 22111fd commit 45453df

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/irqchip/irq-vt8500.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,14 @@ static int __init vt8500_irq_init(struct device_node *node,
191191
struct device_node *parent)
192192
{
193193
int irq, i;
194-
struct device_node *np = node;
195194

196195
if (active_cnt == VT8500_INTC_MAX) {
197196
pr_err("%s: Interrupt controllers > VT8500_INTC_MAX\n",
198197
__func__);
199198
goto out;
200199
}
201200

202-
intc[active_cnt].base = of_iomap(np, 0);
201+
intc[active_cnt].base = of_iomap(node, 0);
203202
intc[active_cnt].domain = irq_domain_add_linear(node, 64,
204203
&vt8500_irq_domain_ops, &intc[active_cnt]);
205204

@@ -222,16 +221,16 @@ static int __init vt8500_irq_init(struct device_node *node,
222221
active_cnt++;
223222

224223
/* check if this is a slaved controller */
225-
if (of_irq_count(np) != 0) {
224+
if (of_irq_count(node) != 0) {
226225
/* check that we have the correct number of interrupts */
227-
if (of_irq_count(np) != 8) {
226+
if (of_irq_count(node) != 8) {
228227
pr_err("%s: Incorrect IRQ map for slaved controller\n",
229228
__func__);
230229
return -EINVAL;
231230
}
232231

233232
for (i = 0; i < 8; i++) {
234-
irq = irq_of_parse_and_map(np, i);
233+
irq = irq_of_parse_and_map(node, i);
235234
enable_irq(irq);
236235
}
237236

0 commit comments

Comments
 (0)