Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5264c43 authored by zhong jiang's avatar zhong jiang Committed by Shawn Guo
Browse files

gpu: do not double put device node in zx_drm_probe



for_each_available_child_of_node will get and put the node properly,
the following of_node_put will lead to the double put. So just
remove it.

Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1534472646-10368-1-git-send-email-zhongjiang@huawei.com
parent e884818c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -161,10 +161,8 @@ static int zx_drm_probe(struct platform_device *pdev)
	if (ret)
		return ret;

	for_each_available_child_of_node(parent, child) {
	for_each_available_child_of_node(parent, child)
		component_match_add(dev, &match, compare_of, child);
		of_node_put(child);
	}

	return component_master_add_with_match(dev, &zx_drm_master_ops, match);
}