]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/85xx: Add missing of_node_put() in ksi8560.c
authorLiang He <windhl@126.com>
Thu, 16 Jun 2022 13:29:22 +0000 (21:29 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:28:25 +0000 (17:28 +1000)
commit1eb3552a6027e08f93e54aa43580287ad0ca738d
tree70d87485613712d4504272244142f5bfbf68f3ac
parent1ab7ff2cbe9db5d28016c1c4c03af208d05aef23
powerpc/85xx: Add missing of_node_put() in ksi8560.c

In ksi8560_setup_arch(), of_find_compatible_node() will return a
node pointer with refcount incremented. The reference should be dropped
with of_node_put() when it is not used anymore.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220616132922.3987053-1-windhl@126.com
arch/powerpc/platforms/85xx/ksi8560.c