Commit 4becf641 authored by Liang He's avatar Liang He Committed by Thomas Bogendoerfer

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: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent c81aba8f
...@@ -44,6 +44,7 @@ static __init unsigned int ranchu_measure_hpt_freq(void) ...@@ -44,6 +44,7 @@ static __init unsigned int ranchu_measure_hpt_freq(void)
__func__); __func__);
rtc_base = of_iomap(np, 0); rtc_base = of_iomap(np, 0);
of_node_put(np);
if (!rtc_base) if (!rtc_base)
panic("%s(): Failed to ioremap Goldfish RTC base!", __func__); panic("%s(): Failed to ioremap Goldfish RTC base!", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment