mips: mti-malta: Fix refcount leak in malta-time.c
authorLiang He <windhl@126.com>
Thu, 16 Jun 2022 14:27:56 +0000 (22:27 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Jun 2022 15:04:30 +0000 (17:04 +0200)
commit608d94cb84c42585058d692f2fe5d327f8868cdb
treeea7751ba1f0cde0192c2032a558aaf202384bbb2
parent4becf6417bbdc293734a590fe4ed38437bbcea2c
mips: mti-malta: Fix refcount leak in malta-time.c

In update_gic_frequency_dt(), of_find_compatible_node() will return
a node pointer with refcount incremented. We should use of_node_put()
when it is not used anymore.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mti-malta/malta-time.c