From: zhong jiang Date: Fri, 17 Aug 2018 02:24:06 +0000 (+0800) Subject: gpu: do not double put device node in zx_drm_probe X-Git-Tag: v5.4-rc1~498^2~30^2~1046 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5264c433c8094d1723a011e1749bafcdac61beb;p=platform%2Fkernel%2Flinux-rpi.git 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: zhong jiang Signed-off-by: Shawn Guo Link: https://patchwork.freedesktop.org/patch/msgid/1534472646-10368-1-git-send-email-zhongjiang@huawei.com --- diff --git a/drivers/gpu/drm/zte/zx_drm_drv.c b/drivers/gpu/drm/zte/zx_drm_drv.c index 6f4205e8..d7b9870 100644 --- a/drivers/gpu/drm/zte/zx_drm_drv.c +++ b/drivers/gpu/drm/zte/zx_drm_drv.c @@ -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); }