From patchwork Mon Jul 18 07:44:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying Liu X-Patchwork-Id: 9234161 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 5718B607FF for ; Mon, 18 Jul 2016 07:44:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B2F1200F5 for ; Mon, 18 Jul 2016 07:44:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FBCD2094F; Mon, 18 Jul 2016 07:44:49 +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 B6B84200F5 for ; Mon, 18 Jul 2016 07:44:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F17486E26A; Mon, 18 Jul 2016 07:44:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0050.outbound.protection.outlook.com [104.47.34.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id 638036E268 for ; Mon, 18 Jul 2016 07:44:42 +0000 (UTC) Received: from BLUPR0301CA0026.namprd03.prod.outlook.com (10.162.113.164) by MWHPR03MB2461.namprd03.prod.outlook.com (10.169.200.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10; Mon, 18 Jul 2016 07:44:40 +0000 Received: from BY2FFO11FD015.protection.gbl (2a01:111:f400:7c0c::130) by BLUPR0301CA0026.outlook.office365.com (2a01:111:e400:5259::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.539.14 via Frontend Transport; Mon, 18 Jul 2016 07:44:40 +0000 Authentication-Results: spf=softfail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD015.mail.protection.outlook.com (10.1.14.131) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Mon, 18 Jul 2016 07:44:37 +0000 Received: from victor.ap.freescale.net (victor.ap.freescale.net [10.192.241.62]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6I7iYlo005529; Mon, 18 Jul 2016 00:44:35 -0700 From: Liu Ying To: Subject: [PATCH 1/2] drm/imx: Remove imx_drm_crtc_vblank_get/_put() Date: Mon, 18 Jul 2016 15:44:23 +0800 Message-ID: <1468827864-21467-1-git-send-email-gnuiyl@gmail.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131133014778693963; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(189002)(199003)(8676002)(105596002)(33646002)(8936002)(81156014)(81166006)(4326007)(50226002)(68736007)(86362001)(50986999)(87572001)(2351001)(106466001)(229853001)(19580395003)(81442002)(356003)(19580405001)(77096005)(82202001)(2906002)(73972006)(73392002)(6806005)(48376002)(87936001)(110136002)(189998001)(76482005)(104016004)(7846002)(6260500002)(50466002)(11100500001)(97736004)(5003940100001)(305945005)(586003)(83322999)(92566002)(61266001)(47776003)(55446002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2461; H:tx30smr01.am.freescale.net; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD015; 1:IKjgC84twxXiF9xn7amVlfQu5ULC6IwV+psB3IbW1bwDOCeXkanFFngxLJHOXyWNkG0AqmL3mbTTsPUtXBHTuJLpWOH+1UIz7GBchOrSkQsHPhq3r7uV9Q8ZZTlenwSsvoBQ3CiLgaPmPYiqiix7jP+zl5g91fedc3EozM5jafOB10RbZsv7LDt23/jlfjZ8A7vHhLEmVlXEb23MM8l52+QuT2b9EsVvMBqExfIwriJBUxqVVqaKX/CMhp967oTibF0ahTJ/EyGVp4oC11GeUUW1aNeKvdQpceGp1zWQw+iHfI5CH+OYy+w3R5yEylDT58S9VBt0tR6SOr1BodMfatEm4TJ1rm0HZjrkMEj3PiCDADJpzV6wS+uxFB2Bl5OePMvbgJnN91dKSibKx41qRo1tIfuyPwky+xr0Ly3XaR1ZREkjUH/KzpAAV5+/XoWLBkiGy0aYAKKm5NH8mZg55rf4MFI+UUveOx05pr2DrBKAMaOwGU6tv4VN6HKWp0IHHP6gESpsmME6kADWRql8fR2svQTnM0656W8ZWiNlwFQAREWMbKtT3cgBKvLDNi5Y0NIgW//7AJDF47tb994QVg== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 16cc0eb2-eac4-4303-67ea-08d3aedf5eaa X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2461; 2:YouaEvh82wHc4FOxi5AJU2i9eM4Rbjl6h5UvxaCiRsqJyjJ838KOd4wqaYds2Pe2/ZUM0+h8MX9MbqF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R3CpUR9Y20Sw4A==; 4:fdgxJA/0ZaS5+wPZMT7lAazStTCEk9CCQeVlWTY3eeT7jlyhoNoLhGJ77JWp3G7kW+3lDJRLzSUg+8tAx5mhlUhT0ihayfXxSNRvLoj9kBXgF51uN7n1+r8vgCKGAG8ohWKmUrxJLCf7fjEMqw4gmYiBrqvSw5SoZaxJiPShT0Akl/mkVsbyMRJwqeWx99l3rDvW5KyqIm8b6MXkTqHkDMTOtZSiE0x05CnnG5pErHZso2p1isGN1fWxrEjb01OfPCLUJ4nTdpfZk2hLGET3LzLt6U+Dn07Oa8ggBW2WmZEyczGhDveAaJnI7HBxaT2VWUHKwfw2C6+7J8JDe6P+7qe+YNC/QZ4Jc9rvhc7/n1ZV9j7hxf9/iPn4T0VFMiIpELzhLrOhzrQ5u3NT6xpbWlnqRzZIbGq1XMkc81sixF59+qqxVgluAjhJhi1d2k13CFM/xDxYmYwqpvnU7Gtt+/jVBE3pteNhDCZxU2pLZg0= 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)(13018025)(13015025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:MWHPR03MB2461; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2461; X-Forefront-PRVS: 00073DB75F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2461; 23:rRhbT1i4ru+Hgh7ACs96E++0I8CLid1KqnwDF04R2?= =?us-ascii?Q?MXxZThSXD00qTvPFUvq49Nkg3QEZ53/vTigVphh+46EtDojYWIpUkBVLUysE?= =?us-ascii?Q?3zRw7aCXkQIgxyCU5AkhJ9EMa0WBlhbOMxFcDHi+tIc3MPRb1t61j1y0YJJj?= =?us-ascii?Q?y6VUd8kTVxBT98RV4dgrLBghyxN9dQWBNehT+lUp0aZ93RYALvrKv16W1HdA?= =?us-ascii?Q?w5JRMF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24/?= =?us-ascii?Q?e+9rmNzG+MNzoeZhbSkKIJvIE0w3qU+ckQG7L9DKeLVjzmr6Bf8gYfWRXaKX?= =?us-ascii?Q?qrTAwrIwWSJ1jCrSph1UquoF64CaniE4bjd?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2461; 6:gULyBcqEl6Az01IwI5aYF1XI8r4rtPv34tmGg2AtgyoLWQqrFqBlW74h8ujOJclHJQjfnDLPWvyYrW1dDSEtnq5W1BN1VUE9M53DjfeAecKFB5I5eGXG8D262F6XL6O8LeY4WRs29q6bYNOZhtK1iOclmy34d6BJHgNt6VxQao06qMQ0pW9UQbB1OQkTtpa0CdSQoq/dLW8Lno+kApGVP3LllTf7ARjIbOy307kEv6Hzq7bw5eg7M4fFEm+pHG5HLQVZLLstX5cnosD07zPav8s4YJlJIG57qWNbpwdQ+p4=; 5:bB74tc/kFr7bBRyFtrh0QCrueobSnn939TWDy70P5+PeQp/hqtcckZFIxOnMwYREeCU1RaPMoiHwobkePTiDlERXXPEuTGoygvG1QmlyJvzzSg6o2TMIdTOAQO08mDDwDXUmc/GdQpQcloPjus0uHnseghmmElonSIMPBTBy7ao=; 24:va+w/AJaB75X45gdcMSKbYTUO/dLoe23zlGL0TpPp6yvG7+4WhqaBh/ESUwvAGygi1F2ea6VvOwBjJy/ZKryI855mR/P+0pR/UdgmcykcbI=; 7:gLCNPvGCihrlz24eJGL4AI7ZmGn1Qe1ce73rUy3libGvDAv79t0HhHxoBh1VUY3gjhyTmzGp+jCP6Al0TL+Rr2zAgA83iAzhWL7aTRQS1uxcJkdZiB8Xm6HCUCB5V/O7xrRltrJqhV3qjmVlCtp6DYGTuPP8tUxQ0van+qy1K3Q1y8Xe/k54k+/+EUbM5TdSQnIvXhW5fANZcW2xTU4bH1pqwLNDF9fOUTRDIBOHNTaH3yvO+dWR5RG1VY3Cu0Oq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2016 07:44:37.6665 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2461 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 There is no one calling imx_drm_crtc_vblank_get/_put() and they are just two simple wrappers of drm_crtc_vblank_get/_put() without doing any thing fancy - the drivers may call drm_crtc_vblank_get/_put() directly. So, let's remove the two wrappers. Signed-off-by: Liu Ying --- drivers/gpu/drm/imx/imx-drm-core.c | 12 ------------ drivers/gpu/drm/imx/imx-drm.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 9f7dafc..1fd1900 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -90,18 +90,6 @@ static int imx_drm_driver_unload(struct drm_device *drm) return 0; } -int imx_drm_crtc_vblank_get(struct imx_drm_crtc *imx_drm_crtc) -{ - return drm_crtc_vblank_get(imx_drm_crtc->crtc); -} -EXPORT_SYMBOL_GPL(imx_drm_crtc_vblank_get); - -void imx_drm_crtc_vblank_put(struct imx_drm_crtc *imx_drm_crtc) -{ - drm_crtc_vblank_put(imx_drm_crtc->crtc); -} -EXPORT_SYMBOL_GPL(imx_drm_crtc_vblank_put); - void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc) { drm_crtc_handle_vblank(imx_drm_crtc->crtc); diff --git a/drivers/gpu/drm/imx/imx-drm.h b/drivers/gpu/drm/imx/imx-drm.h index 07d33e4..0049b77f 100644 --- a/drivers/gpu/drm/imx/imx-drm.h +++ b/drivers/gpu/drm/imx/imx-drm.h @@ -44,8 +44,6 @@ int imx_drm_init_drm(struct platform_device *pdev, int preferred_bpp); int imx_drm_exit_drm(void); -int imx_drm_crtc_vblank_get(struct imx_drm_crtc *imx_drm_crtc); -void imx_drm_crtc_vblank_put(struct imx_drm_crtc *imx_drm_crtc); void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc); void imx_drm_mode_config_init(struct drm_device *drm);