From patchwork Mon Feb 13 06:19:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 9568915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F4B5601E7 for ; Mon, 13 Feb 2017 06:49:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 684DF2819A for ; Mon, 13 Feb 2017 06:49:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CFFF28285; Mon, 13 Feb 2017 06:49:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C9DB82819A for ; Mon, 13 Feb 2017 06:49:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 394B46E0C4; Mon, 13 Feb 2017 06:49:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7DAFE6E0C4 for ; Mon, 13 Feb 2017 06:49:43 +0000 (UTC) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OLA00X7AUWM9K60@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 13 Feb 2017 15:19:34 +0900 (KST) Received: from epsmges1p3.samsung.com (unknown [182.195.40.66]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170213061933epcas1p4c64f95c3ea1c31d91bfdb99687b6b134~ixGcIMTp20154601546epcas1p48; Mon, 13 Feb 2017 06:19:33 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 23.BF.06713.5FF41A85; Mon, 13 Feb 2017 15:19:33 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170213061933epcas1p40510b18ee1ae688f4e5e5187969830f0~ixGb4EPGf0559405594epcas1p4R; Mon, 13 Feb 2017 06:19:33 +0000 (GMT) X-AuditID: b6c32a37-f79196d000001a39-ca-58a14ff589fe Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 23.CB.06487.5FF41A85; Mon, 13 Feb 2017 15:19:33 +0900 (KST) Received: from khg_DeskTop.10.32.193.11 ([10.113.63.38]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OLA00EQAUWJ8750@mmp1.samsung.com>; Mon, 13 Feb 2017 15:19:33 +0900 (KST) From: Hoegeun Kwon To: inki.dae@samsung.com Subject: [PATCH] drm/exynos: dsi: Remove bridge node reference in removal Date: Mon, 13 Feb 2017 15:19:15 +0900 Message-id: <1486966755-24517-1-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAAzWSb0hTURjGPbu7c0qTyzQ7adq44AeVrd1t6hINK9OFgmYEUohd9Oik/dHd TTO/XA3UVHIWgUsKdaIlWiYSGv1jlSZmJlh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gJX27BLeMIw2vWAsesVU0zJ7J3MD4lrWL kZNDQsBE4vy/tYwQtpjEhXvr2boYuTiEBJYySjzb8IQJJCEk8ItRYsFZZhCbTUBX4mvPdbC4 iICExMxXF4Fsdg5mgUKJfzogUWEBT4kfi3ewgNgsAqoSM0/eBlvFK+AhseTMLnaIVXISJ49N Zp3AyL2AkWEVo0RqQXJBcVJ6rmFearlecWJucWleul5yfu4mRnCwPZPawXhwl/shRgEORiUe 3gWLFkQIsSaWFVfmHmKU4GBWEuHtMFwYIcSbklhZlVqUH19UmpNafIjRFOiAicxSosn5wEjI K4k3NDE3MTc2sDC3tDQxUhLnbZz9LFxIID2xJDU7NbUgtQimj4mDU6qBMX3Jqjf98bNs3rFV Xnpu++6r4eKGLxHKDYExO2VS59hvUVuXrLbU9V0Th8PhZ5tdZ6bdOPuo/7xdY3x83PGWJC9j waMzUtf0J7rJPOy1Lyr1UH33dOKtLvmcSreJLaX+ZblfpP+uOJO3PllB61iHp2JOnEWQ0l3/ WSc/l7889ePJ9pi07QFJSizFGYmGWsxFxYkAyKdsSkwCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170213061933epcas1p40510b18ee1ae688f4e5e5187969830f0 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?6raM7ZqM6re8G1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzMo7IKs7JuQKS/sgqzsm5A=?= X-Global-Sender: =?UTF-8?B?SG9lZ2V1biBLd29uG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTMy9Bc3Npc3RhbnQgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170213061933epcas1p40510b18ee1ae688f4e5e5187969830f0 X-RootMTR: 20170213061933epcas1p40510b18ee1ae688f4e5e5187969830f0 References: Cc: linux-samsung-soc@vger.kernel.org, Hoegeun Kwon , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Since bridge node is referenced during in the probe, it should be released on removal. Suggested-by: Andrzej Hajda Signed-off-by: Hoegeun Kwon --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 214d486..2d4e118 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1821,6 +1821,10 @@ static int exynos_dsi_probe(struct platform_device *pdev) static int exynos_dsi_remove(struct platform_device *pdev) { + struct exynos_dsi *dsi = platform_get_drvdata(pdev); + + of_node_put(dsi->bridge_node); + pm_runtime_disable(&pdev->dev); component_del(&pdev->dev, &exynos_dsi_component_ops);