From patchwork Mon Jan 16 09:13:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9518281 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 857A0600C5 for ; Mon, 16 Jan 2017 09:14:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58CBB28342 for ; Mon, 16 Jan 2017 09:14:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D32E28435; Mon, 16 Jan 2017 09:14:51 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07A3228342 for ; Mon, 16 Jan 2017 09:14:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750870AbdAPJO3 (ORCPT ); Mon, 16 Jan 2017 04:14:29 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:49315 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960AbdAPJNa (ORCPT ); Mon, 16 Jan 2017 04:13:30 -0500 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 <0OJV019DO8AGWL20@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Mon, 16 Jan 2017 18:13:28 +0900 (KST) Received: from epsmges5p3.samsung.com (unknown [182.195.40.66]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170116091328epcas1p3aa28e712f727da43375cf7eaa072f61f~aNaSRw9_Z0036400364epcas1p3q; Mon, 16 Jan 2017 09:13:28 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3.samsung.com (EPCPMTA) with SMTP id 5A.BC.10771.8BE8C785; Mon, 16 Jan 2017 18:13:28 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20170116091327epcas5p1250b06956c0fb805113c35c3223a94e3~aNaSD_PXK3104931049epcas5p1l; Mon, 16 Jan 2017 09:13:27 +0000 (GMT) X-AuditID: b6c32a2e-f79f46d000002a13-76-587c8eb869bf Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 97.F0.26370.7BE8C785; Mon, 16 Jan 2017 18:13:27 +0900 (KST) Received: from localhost.localdomain ([10.113.62.206]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJV001508AECE30@mmp1.samsung.com>; Mon, 16 Jan 2017 18:13:27 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, linux-samsung-soc@vger.kernel.org, Inki Dae Subject: [PATCH] drm/exynos: remove unnecessary codes Date: Mon, 16 Jan 2017 18:13:23 +0900 Message-id: <1484558003-18691-2-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1484558003-18691-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHKsWRmVeSWpSXmKPExsWy7bCmpu6OvpoIg70bWSx6z51ksrjy9T2b xaT7E1gsZpzfx+TA4rH92wNWj/vdx5k8+rasYvT4vEkugCUq1SYjNTEltUghNS85PyUzL91W yTs43jne1MzAUNfQ0sJcSSEvMTfVV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WCFsMYkL99azdTFycQgJLGWUeDyrFaxISOAHo8S9k4YgNpuAqsTE FffZQGwRAWWJvxNXMYLYzAJREssPLwWrFxYwlbh0+R8LiM0CVH9nwT4mEJtXwEViw/OrzBDL 5CROHpsMtphTwFVi1pUbQHM4gHa5SJyZLjKBkXcBI8MqRonUguSC4qT0XKO81HK94sTc4tK8 dL3k/NxNjOBAfSa9g/HwLvdDjAIcjEo8vAt2VEcIsSaWFVfmHmKU4GBWEuGtaq2JEOJNSays Si3Kjy8qzUktPsRoCnTXRGYp0eR8YBTllcQbmpibmBsbWJhbWpoYKYnzNs5+Fi4kkJ5Ykpqd mlqQWgTTx8TBKdXA2LyF8+N9qT0mQedY/nEFG0zQmWbx+7L+zsIj0/4xaBvpa6fNfv/krUHR 2c0CFSobxP1ky5kL5r+2Lbr8WeXrtNKiBd6RExdN5jizQlB+y9ptr0WmmCpu+pub0fhIeu5d 1+aHTBMvxnD7ZdwsX2Vrusdup7I/x7WAyBVLA6ZOlNF55Z038a+ErhJLcUaioRZzUXEiAPpr C+1qAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170116091327epcas5p1250b06956c0fb805113c35c3223a94e3 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?64yA7J246riwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS/ssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?SW5raSBEYWUbVGl6ZW4gUGxhdGZvcm0gTGFiLhtTYW1zdW5n?= =?UTF-8?B?IEVsZWN0cm9uaWNzG1M1L1NlbmlvciBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170116091327epcas5p1250b06956c0fb805113c35c3223a94e3 X-RootMTR: 20170116091327epcas5p1250b06956c0fb805113c35c3223a94e3 References: <1484558003-18691-1-git-send-email-inki.dae@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch removes exynos_drm_crtc_cancel_page_flip call when drm is closed because at that time, events will be released by drm_events_release function. Change-Id: I156ea27a4c90aa87a27a50415515fa334148c912 Signed-off-by: Inki Dae Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 9d0df00..035d02e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -198,13 +198,7 @@ static int exynos_drm_open(struct drm_device *dev, struct drm_file *file) static void exynos_drm_preclose(struct drm_device *dev, struct drm_file *file) { - struct drm_crtc *crtc; - exynos_drm_subdrv_close(dev, file); - - list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) - exynos_drm_crtc_cancel_page_flip(crtc, file); - } static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file)