Skip to content

Commit 4becf64

Browse files
windhltsbogend
authored andcommitted
arch: mips: generic: Add missing of_node_put() in board-ranchu.c
In ranchu_measure_hpt_freq(), of_find_compatible_node() will return a node pointer with refcount incremented. We should use of_put_node() when it is not used anymore. Signed-off-by: Liang He <windhl@126.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent c81aba8 commit 4becf64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/mips/generic/board-ranchu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ static __init unsigned int ranchu_measure_hpt_freq(void)
4444
__func__);
4545

4646
rtc_base = of_iomap(np, 0);
47+
of_node_put(np);
4748
if (!rtc_base)
4849
panic("%s(): Failed to ioremap Goldfish RTC base!", __func__);
4950

0 commit comments

Comments
 (0)