summaryrefslogtreecommitdiff
path: root/drivers/bus/vexpress-config.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2016-07-01 12:41:59 +0300
committerSudeep Holla <sudeep.holla@arm.com>2016-08-08 16:31:09 +0300
commit557e37c05f28bad113d65d584699e8d8f29f70a3 (patch)
treea172409cdfef855f06e14a405908f4654e5cb399 /drivers/bus/vexpress-config.c
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadlinux-557e37c05f28bad113d65d584699e8d8f29f70a3.tar.xz
bus: vexpress-config: add missing of_node_put after calling of_parse_phandle
of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/bus/vexpress-config.c')
-rw-r--r--drivers/bus/vexpress-config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c
index c3cb76b363c6..9efdf1de4035 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;