From patchwork Fri Jul 29 06:00:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying Liu X-Patchwork-Id: 9252117 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 DB2BA6077C for ; Fri, 29 Jul 2016 06:15:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C001127F89 for ; Fri, 29 Jul 2016 06:15:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B06D127F96; Fri, 29 Jul 2016 06:15:46 +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=BAD_ENC_HEADER,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DFE127F89 for ; Fri, 29 Jul 2016 06:15:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 000BA6E90C; Fri, 29 Jul 2016 06:15:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0083.outbound.protection.outlook.com [104.47.40.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id A379D6E90C for ; Fri, 29 Jul 2016 06:15:38 +0000 (UTC) Received: from BLUPR0301CA0010.namprd03.prod.outlook.com (10.162.113.148) by MWHPR03MB2494.namprd03.prod.outlook.com (10.169.201.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Fri, 29 Jul 2016 06:00:37 +0000 Received: from BN1AFFO11FD016.protection.gbl (2a01:111:f400:7c10::170) by BLUPR0301CA0010.outlook.office365.com (2a01:111:e400:5259::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15 via Frontend Transport; Fri, 29 Jul 2016 06:00:36 +0000 Authentication-Results: spf=softfail (sender IP is 192.88.158.2) smtp.mailfrom=gmail.com; pengutronix.de; dkim=none (message not signed) header.d=none; pengutronix.de; dmarc=fail action=none header.from=gmail.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 192.88.158.2 as permitted sender) Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD016.mail.protection.outlook.com (10.58.52.76) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.549.5 via Frontend Transport; Fri, 29 Jul 2016 06:00:37 +0000 Received: from victor.ap.freescale.net (victor.ap.freescale.net [10.192.241.62]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u6T60Y6T001513; Thu, 28 Jul 2016 23:00:35 -0700 From: Liu Ying To: Subject: [PATCH] drm/imx: Remove imx_drm_handle_vblank() Date: Fri, 29 Jul 2016 14:00:21 +0800 Message-ID: <1469772021-26251-1-git-send-email-gnuiyl@gmail.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131142456375481264; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(189002)(199003)(33646002)(586003)(50986999)(229853001)(55446002)(73972006)(2906002)(4326007)(19580395003)(47776003)(575784001)(6260500002)(19580405001)(86362001)(68736007)(5003940100001)(50466002)(73392002)(81442002)(83322999)(87572001)(2351001)(105596002)(48376002)(106466001)(69596002)(189998001)(36756003)(305945005)(76482005)(110136002)(50226002)(77096005)(97736004)(8936002)(8676002)(104016004)(87936001)(81166006)(7846002)(82202001)(61266001)(81156014)(356003)(92566002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2494; H:az84smr01.freescale.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD016; 1:8nVssjZ7oSNMO79RCwTRyT44KNsMRpx5qi9EEpZBZy9nIkFotQkPcyC5Ox4cD+6cVsc4MzJNPkzUryFpS480/WAPa9j6QUhHzCw4bpbZWAKx6xCAVdahWtr4rZM2xvA8MIo9ogI4uAHxYuK6iu98xKfvP11/khJpzX22s9DQmgGbjfMtZBaFC8GWVdYeEMBvOYcnPEhgWkHQWub1UHSFdwijAmXRHSAcU2WKtku9YGK2K52QlpwOzHEUU2Fuw0g0gU9PqKNsVyqiMdvLgNh8/hwC6pDhAkY5XXE8kbzS+x8lCoGUXxd+XWG5DWBItgRaDxSKmGAptTyQ1nbi74jtl88+BYzzbRx0NPLMwtDUrsIke2AmJJayNhw1O9mva7SiRq8OJxS0hzrHm2zDzP/1MCIrLkBgLQfHjUZIE/1ihKerPwzaNfvpW6M8QTOP4HhshalFgzqZoMcSlRYhvreLTEw9znpT5aqekROA/mvUSF4gw+ASdpJa5uGf6a0GcLRYcOvb52qnjyBshwz7+jBfXXosjyuUGwqcZCxRbgvNwqw0FKAauZbc7K42/TPc0k/ybQqxR0QuZoAfdHIPDRLrag== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 19207462-58db-4934-93b0-08d3b775a9b2 X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2494; 2:X3To+IO0H/Lb1bQ4/NKP9q3qaHZMJRtgETfLbvBO1qZ77TH6/HMAh0Eu08ZUv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SI0ZCyt+ijTLGaBYuLYW/Ig22AWP07nOwQ==; 4:qTJBnHNy5lgn4KHddBfuNa0WxdbBS8+aO7dCvRoQmLU0YJhcdMdHsyls327C1j9Mw7C3xZnNP3E16PtOTZDVkqX0mXNNFP03qnbvTAv2GhV1aYYRxUu3DiyZDspjtW25KT2NxtyYFvH2vW5qz9o2ELQhtIpjUtunsfxhNWCjV8LDA60Gg/KPmCx4vLEmWeqzDevGGmPCQ5xq9icOLEjlleRA0+eiDXH1A6a7z8aPY//dwTk73xT0eUW2rpeSAFHbCSN8T0kpv190ZkQ4muwpObxyNyE1eb/r/AxAH1lHTokRQC1jTU91DPkIgBwCQrVTWoXTTPVXg/rJtMWm5uNXD4aVAHdlq6t0r+iph2OnGKgsbY+xA3TRl4iyqnyMPL7ke+bio4xOrqMdljM2pz/ZcuSEUO+sYyqMY68qnMM3zCjXZC52ku/T4skpzIwG1FGe3QjzP2DCcao20A0mG7wHzlhugUfV/Y4EFKReUoDODeQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:MWHPR03MB2494; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2494; X-Forefront-PRVS: 0018A2705B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2494; 23:IorWUJZlr71NyltwhtDDVsIEjE449oGo6VEP2xfkT?= =?us-ascii?Q?m0KD3AMZy90/dwUwpujW1zEIyDUn1A4d103C1dO9xA+/jfRbZ08KMIDjeTvy?= =?us-ascii?Q?B5bvhwZRytmJtuyLL60jj13S3fHWTfBNKRbSjM+5a+i1kpj5qx+KNWgqpmlW?= =?us-ascii?Q?6piQo+VnE+ea1N/Oa/aOlgd08u5MDKRfpwuzvdAkhCCb17KA6bCIOcnL0TYK?= =?us-ascii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exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2016 06:00:37.3141 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2494 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP imx_drm_handle_vblank() is just a simple wrapper of drm_crtc_handle_vblank() without doing any thing fancy - drm_crtc_handle_vblank() can be called directly. So, let's remove the wrapper. Signed-off-by: Liu Ying --- drivers/gpu/drm/imx/imx-drm-core.c | 6 ------ drivers/gpu/drm/imx/imx-drm.h | 2 -- drivers/gpu/drm/imx/ipuv3-crtc.c | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 1aefced..6dc0ef4 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -84,12 +84,6 @@ static int imx_drm_driver_unload(struct drm_device *drm) return 0; } -void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc) -{ - drm_crtc_handle_vblank(imx_drm_crtc->crtc); -} -EXPORT_SYMBOL_GPL(imx_drm_handle_vblank); - static int imx_drm_enable_vblank(struct drm_device *drm, unsigned int pipe) { struct imx_drm_device *imxdrm = drm->dev_private; diff --git a/drivers/gpu/drm/imx/imx-drm.h b/drivers/gpu/drm/imx/imx-drm.h index bdaa381..5a91cb1 100644 --- a/drivers/gpu/drm/imx/imx-drm.h +++ b/drivers/gpu/drm/imx/imx-drm.h @@ -42,8 +42,6 @@ int imx_drm_init_drm(struct platform_device *pdev, int preferred_bpp); int imx_drm_exit_drm(void); -void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc); - void imx_drm_mode_config_init(struct drm_device *drm); struct drm_gem_cma_object *imx_drm_fb_get_obj(struct drm_framebuffer *fb); diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c index 08e188b..5950b12 100644 --- a/drivers/gpu/drm/imx/ipuv3-crtc.c +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c @@ -134,7 +134,7 @@ static irqreturn_t ipu_irq_handler(int irq, void *dev_id) { struct ipu_crtc *ipu_crtc = dev_id; - imx_drm_handle_vblank(ipu_crtc->imx_crtc); + drm_crtc_handle_vblank(&ipu_crtc->base); return IRQ_HANDLED; }