aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/setup.c
diff options
context:
space:
mode:
authorLiang He <windhl@126.com>2022-06-19 15:23:35 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2022-09-05 17:28:26 +1000
commitd9e1c6104d87d4027133b28f5ccab8f999830acd (patch)
tree8af6375ee08a78d037216c4224564949d074ebbf /arch/powerpc/platforms/cell/setup.c
parentd1aabbbb2564f23b66ded10d870e7859e92075a3 (diff)
downloadlinux-d9e1c6104d87d4027133b28f5ccab8f999830acd.tar.gz
powerpc/cell: Add missing of_node_put()s
Use of_node_put() for of_find_node_by_path() and of_find_node_by_phandle() to keep refcount balance. Signed-off-by: Liang He <windhl@126.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220619072335.4067728-1-windhl@126.com
Diffstat (limited to 'arch/powerpc/platforms/cell/setup.c')
-rw-r--r--arch/powerpc/platforms/cell/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c
index 52de014983c97f..47eaf75349f2fc 100644
--- a/arch/powerpc/platforms/cell/setup.c
+++ b/arch/powerpc/platforms/cell/setup.c
@@ -167,6 +167,8 @@ static int __init cell_publish_devices(void)
of_platform_device_create(np, NULL, NULL);
}
+ of_node_put(root);
+
/* There is no device for the MIC memory controller, thus we create
* a platform device for it to attach the EDAC driver to.
*/