From patchwork Fri Jan 9 01:24:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyungwon Hwang X-Patchwork-Id: 5596271 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6B8F99F443 for ; Fri, 9 Jan 2015 01:25:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 653BC20561 for ; Fri, 9 Jan 2015 01:25:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EF1882055D for ; Fri, 9 Jan 2015 01:25:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 68FFE6E80A; Thu, 8 Jan 2015 17:25:04 -0800 (PST) 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 E8DBC6E80A for ; Thu, 8 Jan 2015 17:25:02 -0800 (PST) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHV001SBYLPW390@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 09 Jan 2015 10:25:01 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 6A.7F.18167.DED2FA45; Fri, 09 Jan 2015 10:25:01 +0900 (KST) X-AuditID: cbfee690-f79ab6d0000046f7-9d-54af2ded7fa7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CD.99.20081.DED2FA45; Fri, 09 Jan 2015 10:25:01 +0900 (KST) Received: from localhost.localdomain ([10.252.82.145]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NHV00KUQYLM3P50@mmp1.samsung.com>; Fri, 09 Jan 2015 10:25:01 +0900 (KST) From: Hyungwon Hwang To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: remove the redundant machine checking code Date: Fri, 09 Jan 2015 10:24:41 +0900 Message-id: <1420766681-22195-1-git-send-email-human.hwang@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrALMWRmVeSWpSXmKPExsWyRsSkRPet7voQg4lflC2ufH3PZrF0Rh+r xaT7E1gcmD3udx9n8ujbsooxgCmKyyYlNSezLLVI3y6BK6Nl+yymguecFa3vZrM3MM7j6GLk 5JAQMJHYMaOLGcIWk7hwbz1bFyMXh5DAUkaJplsHWGCKtp5oZoZILGKUaJ/0BKqqjUli2oo1 rCBVbAJ6Eguu/WAHsUUElCX+TlzFCGIzCzhJ7Nk1DaiGg0NYwF3iRa8cSJhFQFVi/+UTYK28 QOGNr8+wQyyTkzh5bDIrhH2CTWL6yxiIegGJb5MPsYCMkRCQldh0AOpoSYmDK26wTGAUXMDI sIpRNLUguaA4Kb3IRK84Mbe4NC9dLzk/dxMjMOBO/3s2YQfjvQPWhxgFOBiVeHg3yK0PEWJN LCuuzD3EaAq0YSKzlGhyPjCs80riDY3NjCxMTUyNjcwtzZTEeV9L/QwWEkhPLEnNTk0tSC2K LyrNSS0+xMjEwSkFDM2owJf6Nr5vqz0u/WbvObLH65uwuKi0zzM2DbmK1QsV9N+wZuUsEdM0 i1lUw5NbtbIl9vvCg3vu3Fzzwr4zb7KGduiBTeJHVnp9PM86ae6pn8UcTHKzVNuOXrR2t/7a N/NagsmTx+7sKYyHGRrfsi/zlmGoSWW6Vu6/pi14pYXlPknJmQUhSizFGYmGWsxFxYkA8DjE mTMCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNLMWRmVeSWpSXmKPExsVy+t9jAd23uutDDP6+l7G48vU9m8XSGX2s FpPuT2BxYPa4332cyaNvyyrGAKaoBkabjNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0sL cyWFvMTcVFslF58AXbfMHKAtSgpliTmlQKGAxOJiJX07TBNCQ9x0LWAaI3R9Q4LgeowM0EDC GsaMlu2zmAqec1a0vpvN3sA4j6OLkZNDQsBEYuuJZmYIW0ziwr31bF2MXBxCAosYJdonPYFy 2pgkpq1YwwpSxSagJ7Hg2g92EFtEQFni78RVjCA2s4CTxJ5d04BqODiEBdwlXvTKgYRZBFQl 9l8+AdbKCxTe+PoMO8QyOYmTxyazTmDkXsDIsIpRNLUguaA4KT3XUK84Mbe4NC9dLzk/dxMj OKCfSe1gXNlgcYhRgINRiYd3g9z6ECHWxLLiytxDjBIczEoivHZqQCHelMTKqtSi/Pii0pzU 4kOMpkDbJzJLiSbnA6MtryTe0NjEzMjSyNzQwsjYXEmcV8m+LURIID2xJDU7NbUgtQimj4mD U6qBscuyS6eW69Nf1vmR+R4JISxP9uzunbktjPUH7/wkzmvnP/KtMbl4ZrqAuppxU5+S99xF 0nnX4sqSLadmnY2/sjrm6JPZff1mS7e/Y3p79jS7F6/bNYdLUcwRZ4o+RL26GHF4vtv/P/9U dipd+atYvV5iU8zuivur5AS3uYXtf+y8qeUFJ+edf0osxRmJhlrMRcWJAJdf3AV+AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: Hyungwon Hwang 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This code is unnecessary, because same logic is already included. Refer this mail thread[1] for detail. [1] http://lists.freedesktop.org/archives/dri-devel/2015-January/075132.html Signed-off-by: Hyungwon Hwang --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 25ba362..d71fb54 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -646,18 +646,6 @@ static int exynos_drm_init(void) if (!is_exynos) return -ENODEV; - /* - * Register device object only in case of Exynos SoC. - * - * Below codes resolves temporarily infinite loop issue incurred - * by Exynos drm driver when using multi-platform kernel. - * So these codes will be replaced with more generic way later. - */ - if (!of_machine_is_compatible("samsung,exynos3") && - !of_machine_is_compatible("samsung,exynos4") && - !of_machine_is_compatible("samsung,exynos5")) - return -ENODEV; - exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1, NULL, 0); if (IS_ERR(exynos_drm_pdev))