ARM: rockchip: Add missing of_node_put() in rockchip_suspend_init()
authorLiang He <windhl@126.com>
Thu, 16 Jun 2022 02:17:13 +0000 (10:17 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 17 Jun 2022 17:05:51 +0000 (19:05 +0200)
commitf4470dbfb5ff92804650bc71d115c3f150d430f6
tree1a6ca93a6cd8c0d3cbec6ce11209f7dd4aff6801
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
ARM: rockchip: Add missing of_node_put() in rockchip_suspend_init()

In rockchip_suspend_init(), of_find_matching_node_and_match() will
return a node pointer with refcount incremented. We should use
of_node_put() in fail path or when it is not used anymore.

Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220616021713.3973472-1-windhl@126.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/pm.c