Skip to contentSkip to conversation

mach-keystone: (pm_domain) Add missing of_node_put()

PATCH New Liang He 1 participant 1 message Jun 16, 2022

Subsystems (3)
lore
Share & tools
lore

Liang He

author
#0 lore raw

PATCH v2 1/1 mach-keystone: (pm_domain) Add missing of_node_put()

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.

---
changelog:

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

 arch/arm/mach-keystone/pm_domain.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-keystone/pm_domain.c +1 -0
index 5eea01cbecf0..00c9c0230575 100644
@@ -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;
Signature · 1 line
2.25.1