Skip to content

Commit 3748d21

Browse files
windhltsbogend
authored andcommitted
mips: lantiq: Add missing of_node_put() in irq.c
In icu_of_init(), of_find_compatible_node() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: Liang He <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent db30dc1 commit 3748d21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/lantiq/irq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent)
408408
if (!ltq_eiu_membase)
409409
panic("Failed to remap eiu memory");
410410
}
411+
of_node_put(eiu_node);
411412

412413
return 0;
413414
}

0 commit comments

Comments
 (0)