diff options
author | Liang He <windhl@126.com> | 2022-06-21 23:41:25 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2022-06-21 22:34:03 +0200 |
commit | 3748d2185ac4c2c6f80989672253aad909ecaf95 (patch) | |
tree | 4c5154a1cd1b8bd4b6ee8638a1e54fd7ff8841a6 /arch | |
parent | db30dc1a5226eb74d52f748989e9a06451333678 (diff) |
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 <windhl@126.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/lantiq/irq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index b732495f138a..20622bf0a9b3 100644 --- a/arch/mips/lantiq/irq.c +++ b/arch/mips/lantiq/irq.c @@ -408,6 +408,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent) if (!ltq_eiu_membase) panic("Failed to remap eiu memory"); } + of_node_put(eiu_node); return 0; } |