From patchwork Mon Nov 27 08:06:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 10076035 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 47B9C6028E for ; Mon, 27 Nov 2017 08:06:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39D0A28C86 for ; Mon, 27 Nov 2017 08:06:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EA7928D56; Mon, 27 Nov 2017 08:06: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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 380FF28C86 for ; Mon, 27 Nov 2017 08:06:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9420C6E1F7; Mon, 27 Nov 2017 08:06:43 +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 6860F6E1F7 for ; Mon, 27 Nov 2017 08:06:42 +0000 (UTC) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20171127080639epoutp034cb565c7ddf0616ab3a6167c964d198b~64s4ewHWD2963329633epoutp03w; Mon, 27 Nov 2017 08:06:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20171127080639epoutp034cb565c7ddf0616ab3a6167c964d198b~64s4ewHWD2963329633epoutp03w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511769999; bh=pC6m+PQR2qxgO4NhUNO6i00UnRwFZ7dQCv6KsRltyts=; h=From:To:Cc:Subject:Date:References:From; b=sxth++G7/+XvGDuWrzdHtPJ0MNuNPikX+CcCnLTtNe0iHR2wnJQmJcvC/22z/Kmcr 3UYYTV/LMZseDcnIXO+3wI79/6LIav6FNnz7B0IG0bz+2P056s0YwKZSwoqzAZZmTF BgYPksi5f0jlFJbRtWLEles81dXOP7AMtcVxxU/M= Received: from epsmges2p1.samsung.com (unknown [182.195.40.65]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20171127080639epcas1p13cc5acbea6bee6356dbea5ca1f3cd7d9~64s4Mi-Tz0495704957epcas1p1f; Mon, 27 Nov 2017 08:06:39 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 98.72.04343.F87CB1A5; Mon, 27 Nov 2017 17:06:39 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20171127080639epcas2p3d6ab12d9a00fc55af2b7b09741052704~64s323ZdW3120931209epcas2p3e; Mon, 27 Nov 2017 08:06:39 +0000 (GMT) X-AuditID: b6c32a45-e63ff700000010f7-bb-5a1bc78fa48c Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1A.83.03909.F87CB1A5; Mon, 27 Nov 2017 17:06:39 +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 <0P0200F72H72KL20@mmp1.samsung.com>; Mon, 27 Nov 2017 17:06:38 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: remove unnecessary function declaration Date: Mon, 27 Nov 2017 17:06:37 +0900 Message-id: <1511769997-3223-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42LZdljTXLf/uHSUwZt3chZXvr5ns5h0fwKL xYzz+5gs1h65y+7A4nG/+ziTR9+WVYwenzfJBTBHpdpkpCampBYppOYl56dk5qXbKnkHxzvH m5oZGOoaWlqYKynkJeam2iq5+AToumXmAG1TUihLzCkFCgUkFhcr6dvZFOWXlqQqZOQXl9gq RRsaGukZGpjrGRkZ6ZkYx1oZmQKVJKRmnN54mbHgvGDF469vWBoY1/B1MXJySAiYSMx/+5a9 i5GLQ0hgB6NE04dGFgjnO6PEla87WWGqlh3vgarazSixa18zM4Tzg1Hiz5J1LCBVbAKqEhNX 3GcDsUUElCX+TlzFCGIzCyRJvDmwnh3EFhZwkbj1bCeYzQJUP23WDaBeDg5eAWeJqYtDIJbJ SZw8Nhlq8VlWif+H1SFsF4ne87/ZIGxhiVfHt7BD2NISz1ZtZAS5R0KgHei4s9fZIJweRonl ixdBVRlLPFvYxQRxEJ9Ex+G/7CCLJQR4JTrahCBKPCSmnJrDAmE7ShxadBTsCCGBWInFK9cz T2CUXMDIsIpRLLWgODc9tdiowFCvODG3uDQvXS85P3cTIzgBaLnuYJxxzucQowAHoxIPb4Wf dJQQa2JZcWXuIUYJDmYlEV6BcqkoId6UxMqq1KL8+KLSnNTiQ4ymwOCYyCwlmpwPTE55JfGG JpYGJmZmRuZmFsAUIM5bv+1ahJBAemJJanZqakFqEUwfEwenVANj3R39ENMvp5bukb9uzxf2 w7J/wsYIkXVRdiXvW7R2Boad7BX3YRKR1n7z9w9/ktwThtWrtt92c7DusYy+8O7HiXM9D3lZ zzkv5bJ9NbXAVuLNlbnn/doZrqypuFl+tOTowhLhsw5fytdW35m4a++5A1xhfd4pgddPv726 cvbp/FI/lQ/P01++VmIpzkg01GIuKk4EABFilnEWAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFJMWRmVeSWpSXmKPExsVy+t9jAd3+49JRBje2cVpc+fqezWLS/Qks FjPO72OyWHvkLrsDi8f97uNMHn1bVjF6fN4kF8AcxWWTkpqTWZZapG+XwJVxeuNlxoLzghWP v75haWBcw9fFyMkhIWAisex4D3sXIxeHkMBORonph5pYIJwfjBIb/09kBqliE1CVmLjiPhuI LSKgLPF34ipGEJtZIEmibfIfVhBbWMBF4taznewgNgtQ/bRZN4AGcXDwCjhLTF0cArFMTuLk scmsExi5FjAyrGKUTC0ozk3PLTYqMMpLLdcrTswtLs1L10vOz93ECPTxtsNa/TsYHy+JP8Qo wMGoxMNb4ScdJcSaWFZcmXuIUYKDWUmEV6BcKkqINyWxsiq1KD++qDQntfgQozQHi5I4L3/+ sUghgfTEktTs1NSC1CKYLBMHp1QDY/Pfl2rNtfr2cRq73+x2XM64/LOD5bm7wd838CsGiale yZJNLu5rnfi3qKlAj29PgLfcb8nUOeu7b51PzYu/Ld+ls7tO4A/DNC2PT2yr6oMCuBl1t+86 M5l7q6vV0rv73t7eaTXl3rLVcTZvHofkMTXd5rqooX/M2IPvcSHj+37TyTGM7VbRSizFGYmG WsxFxYkAMvSVke0BAAA= X-CMS-MailID: 20171127080639epcas2p3d6ab12d9a00fc55af2b7b09741052704 X-Msg-Generator: CA CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20171127080639epcas2p3d6ab12d9a00fc55af2b7b09741052704 X-RootMTR: 20171127080639epcas2p3d6ab12d9a00fc55af2b7b09741052704 References: Cc: linux-samsung-soc@vger.kernel.org, m.szyprowski@samsung.com 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 Removed exynos_drm_get_dma_device funtion declaration on top of exynos_drm_drv.c file. We can remove this declaration by moving the implementation of this function upwards. Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 44 ++++++++++++++++----------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index a6ff3a5..27e423b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -37,8 +37,6 @@ #define DRIVER_MAJOR 1 #define DRIVER_MINOR 0 -static struct device *exynos_drm_get_dma_device(void); - int exynos_atomic_check(struct drm_device *dev, struct drm_atomic_state *state) { @@ -301,6 +299,27 @@ static struct component_match *exynos_drm_match_add(struct device *dev) return match ?: ERR_PTR(-ENODEV); } +static struct device *exynos_drm_get_dma_device(void) +{ + int i; + + for (i = 0; i < ARRAY_SIZE(exynos_drm_drivers); ++i) { + struct exynos_drm_driver_info *info = &exynos_drm_drivers[i]; + struct device *dev; + + if (!info->driver || !(info->flags & DRM_DMA_DEVICE)) + continue; + + while ((dev = bus_find_device(&platform_bus_type, NULL, + &info->driver->driver, + (void *)platform_bus_type.match))) { + put_device(dev); + return dev; + } + } + return NULL; +} + static int exynos_drm_bind(struct device *dev) { struct exynos_drm_private *private; @@ -469,27 +488,6 @@ static int exynos_drm_platform_remove(struct platform_device *pdev) }, }; -static struct device *exynos_drm_get_dma_device(void) -{ - int i; - - for (i = 0; i < ARRAY_SIZE(exynos_drm_drivers); ++i) { - struct exynos_drm_driver_info *info = &exynos_drm_drivers[i]; - struct device *dev; - - if (!info->driver || !(info->flags & DRM_DMA_DEVICE)) - continue; - - while ((dev = bus_find_device(&platform_bus_type, NULL, - &info->driver->driver, - (void *)platform_bus_type.match))) { - put_device(dev); - return dev; - } - } - return NULL; -} - static void exynos_drm_unregister_devices(void) { int i;