Commit 64e696af authored by Liang He's avatar Liang He Committed by Michael Ellerman
Browse files

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: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220616132922.3987053-1-windhl@126.com
parent 06f48f5c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -133,6 +133,8 @@ static void __init ksi8560_setup_arch(void)
	else
		printk(KERN_ERR "Can't find CPLD in device tree\n");

	of_node_put(cpld);

	if (ppc_md.progress)
		ppc_md.progress("ksi8560_setup_arch()", 0);