Thread (18 messages) flat view 18 messages, 7 authors, 2016-07-11
STALE3687d

[PATCH 5/7] bus: vexpress-config: add missing of_node_put after calling of_parse_phandle

From: Peter Chen <hidden>
Date: 2016-07-01 13:27:04
Also in: linux-pm, linux-renesas-soc, linux-samsung-soc, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Sudeep Holla <redacted>
Cc: Lorenzo Pieralisi <redacted>
Signed-off-by: Peter Chen <redacted>
---
 drivers/bus/vexpress-config.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c
index c3cb76b..9efdf1d 100644
--- a/drivers/bus/vexpress-config.c
+++ b/drivers/bus/vexpress-config.c
@@ -178,6 +178,7 @@ static int vexpress_config_populate(struct device_node *node)
 
 	parent = class_find_device(vexpress_config_class, NULL, bridge,
 			vexpress_config_node_match);
+	of_node_put(bridge);
 	if (WARN_ON(!parent))
 		return -ENODEV;
 
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help