mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Acked-by: Liviu Dudau <[email protected]> Signed-off-by: Peter Chen <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
This commit is contained in:
parent
29b4817d40
commit
557e37c05f
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue