From patchwork Fri Apr 26 05:03:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 2490831 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id EEDFDDF230 for ; Fri, 26 Apr 2013 05:03:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BF9AEE67F3 for ; Thu, 25 Apr 2013 22:03:24 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 44B0EE67E5 for ; Thu, 25 Apr 2013 22:03:13 -0700 (PDT) Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MLU00EQ4JDAXTN0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 26 Apr 2013 14:03:11 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 13.51.13955.F8A0A715; Fri, 26 Apr 2013 14:03:11 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-50-517a0a8fb19d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E1.7D.08957.F8A0A715; Fri, 26 Apr 2013 14:03:11 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.8.53]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MLU00GSVJDB7H40@mmp2.samsung.com>; Fri, 26 Apr 2013 14:03:11 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: fix multiple definition build error Date: Fri, 26 Apr 2013 14:03:10 +0900 Message-id: <1366952590-11652-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.5.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsWyRsSkWLefqyrQYNd0NYvecyeZLK58fc9m Men+BBaLF/cuslicbXrDbjFj8ks2BzaP7d8esHrc7z7O5NG3ZRVjAHMUl01Kak5mWWqRvl0C V8bpi0dZCmbxVuw+cY+pgfE4dxcjJ4eEgInE+4dz2CBsMYkL99YD2VwcQgJLGSXuPlvP1MXI AVb0eYUwRHw6o8TrF7+YIJwuJomjUx6DdbMJqEpMXHEfzBYRMJXomLSUBcRmFkiT+P59LzuI LSzgING98QcziM0CVP/410NGEJtXwEXi8N/9UFcoSPw6sooVZIGEwHs2iTt//7NBNAhIfJt8 iAXiIlmJTQeYIeolJQ6uuMEygVFwASPDKkbR1ILkguKk9CJjveLE3OLSvHS95PzcTYzA0Dz9 71n/Dsa7B6wPMSYDjZvILCWanA8M7bySeENjMyMLUxNTYyNzSzPShJXEedVarAOFBNITS1Kz U1MLUovii0pzUosPMTJxcEo1MGqXe+3r5al6lCO0vGvJ98kHnGJUFszpZqo/8TLMi93TpkWB TcTbdMrKwsmryidtuKty+r2Kv8saiX6bAgau8MmPgwMmT/b5OE3iOaOZ3sPiK2n2MWs3P/v3 gnXx4ShX+17nS7/em1j/3azBU8IrcuI0j+ru258tn17TU/WL3HfC+9AcG+VDc5RYijMSDbWY i4oTAafL0ntjAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRmVeSWpSXmKPExsVy+t9jQd1+rqpAgx8r5S16z51ksrjy9T2b xaT7E1gsXty7yGJxtukNu8WMyS/ZHNg8tn97wOpxv/s4k0ffllWMAcxRDYw2GamJKalFCql5 yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4Bum6ZOUCblRTKEnNKgUIBicXFSvp2 mCaEhrjpWsA0Ruj6hgTB9RgZoIGENYwZpy8eZSmYxVux+8Q9pgbG49xdjBwcEgImEp9XCHcx cgKZYhIX7q1n62Lk4hASmM4o8frFLyYIp4tJ4uiUx2wgVWwCqhITV9wHs0UETCU6Ji1lAbGZ BdIkvn/fyw5iCws4SHRv/MEMYrMA1T/+9ZARxOYVcJE4/Hc/G8Q2BYlfR1axTmDkXsDIsIpR NLUguaA4KT3XUK84Mbe4NC9dLzk/dxMjOPCfSe1gXNlgcYhRgINRiYfXwaEyUIg1say4MvcQ owQHs5II79UZQCHelMTKqtSi/Pii0pzU4kOMyUDbJzJLiSbnA6MyryTe0NjEzMjSyNzQwsjY nDRhJXHeA63WgUIC6YklqdmpqQWpRTBbmDg4pRoY25iUt8YtvrJsjUDLJlFLY3Zm6Qwlfrkb CTdEVyZwnrp0LIwr5ubJoGC1CK7G1XJrwjWX/NwZcUtZ2nPpoePLp29ZYF3wYc816Wn1/9kO fVRSm5f/siEt83tkZQd79rYQbZvNPGoVXI/0JunUTfWUOrqnTXnewSC792EqX+t+9aQbvJjl uuiYEktxRqKhFnNRcSIAmzKoLMACAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org This patch fixes multiple definition error like below when building it as moudle with device tree support. drivers/gpu/drm/exynos/exynos_drm_g2d.o: In function `.LANCHOR1': exynos_drm_g2d.c:(.rodata+0x6c): multiple definition of `__mod_of_device_table' drivers/gpu/drm/exynos/exynos_drm_fimd.o:exynos_drm_fimd.c:(.rodata+0x144): first defined here Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 746b282..1e02d13 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -117,7 +117,7 @@ static const struct of_device_id fimd_driver_dt_match[] = { .data = &exynos5_fimd_driver_data }, {}, }; -MODULE_DEVICE_TABLE(of, fimd_driver_dt_match); +MODULE_DEVICE_TABLE(of_fimd, fimd_driver_dt_match); #endif static inline struct fimd_driver_data *drm_fimd_get_driver_data( diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index 47a493c..6a01ff1 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -1525,7 +1525,7 @@ static const struct of_device_id exynos_g2d_match[] = { { .compatible = "samsung,exynos5250-g2d" }, {}, }; -MODULE_DEVICE_TABLE(of, exynos_g2d_match); +MODULE_DEVICE_TABLE(of_g2d, exynos_g2d_match); #endif struct platform_driver g2d_driver = {