DORMANTno replies

[PATCH v2] mach-keystone: (pm_domain) Add missing of_node_put()

From: Liang He <hidden>
Date: 2022-06-16 04:04:36
Also in: lkml
Subsystem: arm port, arm/texas instrument keystone architecture, the rest · Maintainers: Russell King, Nishanth Menon, Santosh Shilimkar, Linus Torvalds

In keystone_pm_runtime_init(), of_find_matching_node() will return a
node pointer with refcount incremented. We should use of_node_put()
when it is not used anymore.

Signed-off-by: Liang He <redacted>
---
 changelog:

 v2: use real name for Sob
 v1: fix missing bug

 arch/arm/mach-keystone/pm_domain.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-keystone/pm_domain.c b/arch/arm/mach-keystone/pm_domain.c
index 5eea01cbecf0..00c9c0230575 100644
--- a/arch/arm/mach-keystone/pm_domain.c
+++ b/arch/arm/mach-keystone/pm_domain.c
@@ -44,6 +44,7 @@ int __init keystone_pm_runtime_init(void)
 	if (!np)
 		return 0;
 
+	of_node_put(np);
 	pm_clk_add_notifier(&platform_bus_type, &platform_domain_notifier);
 
 	return 0;
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help