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.
Unified · Split
| @@ -44,6 +44,7 @@ static __init unsigned int ranchu_measure_hpt_freq(void) · 43 unmodified lines | ||
| 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 | |