aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang He <windhl@126.com>2022-06-15 22:11:23 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-06-21 17:04:30 +0200
commit4becf6417bbdc293734a590fe4ed38437bbcea2c (patch)
tree64bf82709575a7f4a191f7473735542da1ad53ba
parentMIPS: Remove repetitive increase irq_err_count (diff)
downloadlinux-dev-4becf6417bbdc293734a590fe4ed38437bbcea2c.tar.xz
linux-dev-4becf6417bbdc293734a590fe4ed38437bbcea2c.zip
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>
-rw-r--r--arch/mips/generic/board-ranchu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/generic/board-ranchu.c b/arch/mips/generic/board-ranchu.c
index a89aaad59cb1..930c45041882 100644
--- a/arch/mips/generic/board-ranchu.c
+++ b/arch/mips/generic/board-ranchu.c
@@ -44,6 +44,7 @@ static __init unsigned int ranchu_measure_hpt_freq(void)
__func__);
rtc_base = of_iomap(np, 0);
+ of_node_put(np);
if (!rtc_base)
panic("%s(): Failed to ioremap Goldfish RTC base!", __func__);