Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liang He and committed by
Thomas Bogendoerfer
4becf641 c81aba8f

+1
+1
arch/mips/generic/board-ranchu.c
··· 44 44 __func__); 45 45 46 46 rtc_base = of_iomap(np, 0); 47 + of_node_put(np); 47 48 if (!rtc_base) 48 49 panic("%s(): Failed to ioremap Goldfish RTC base!", __func__); 49 50