summaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2016-07-01 11:41:59 +0200
committerSudeep Holla <sudeep.holla@arm.com>2016-08-08 15:31:09 +0200
commit557e37c05f28bad113d65d584699e8d8f29f70a3 (patch)
treea172409cdfef855f06e14a405908f4654e5cb399 /drivers/bus
parentLinux 4.8-rc1 (diff)
downloadlinux-557e37c05f28bad113d65d584699e8d8f29f70a3.tar.xz
linux-557e37c05f28bad113d65d584699e8d8f29f70a3.zip
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')
-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;