mips/pic32/pic32mzda: Fix refcount leak bugs
authorLiang He <windhl@126.com>
Sun, 19 Jun 2022 04:54:27 +0000 (12:54 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Jun 2022 15:04:54 +0000 (17:04 +0200)
commiteb9e9bc4fa5fb489c92ec588b3fb35f042ba6d86
tree92d4b7a7356fd6c5402c90e27d1785a7d8f1090c
parent76695592711ef1e215cc24ed3e1cd857d7fc3098
mips/pic32/pic32mzda: Fix refcount leak bugs

of_find_matching_node(), of_find_compatible_node() and
of_find_node_by_path() will return node pointers with refcout
incremented. We should call of_node_put() when they are not
used anymore.

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