From patchwork Wed Dec 10 15:48:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 5470511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BE44BBEEA8 for ; Wed, 10 Dec 2014 15:57:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D47B52011D for ; Wed, 10 Dec 2014 15:57:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC66220160 for ; Wed, 10 Dec 2014 15:57:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XyjYs-0004Yz-LB; Wed, 10 Dec 2014 15:52:22 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XyjWB-0000px-Cs for linux-arm-kernel@lists.infradead.org; Wed, 10 Dec 2014 15:49:36 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NGD005O6ISWZP70@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 10 Dec 2014 15:53:20 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-d6-54886b79631f Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 53.39.07834.97B68845; Wed, 10 Dec 2014 15:49:13 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NGD00L5CIL48260@eusync1.samsung.com>; Wed, 10 Dec 2014 15:49:13 +0000 (GMT) From: Andrzej Hajda To: linux-kernel@vger.kernel.org (open list) Subject: [RFC 11/15] drm/exynos/dsi: convert to restrack API Date: Wed, 10 Dec 2014 16:48:29 +0100 Message-id: <1418226513-14105-12-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1418226513-14105-1-git-send-email-a.hajda@samsung.com> References: <1418226513-14105-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsVy+t/xy7qV2R0hBhNWyVncWneO1eLAi4Us FlMfPmGzmH8EyL3y9T2bxblXj1gsDvzZwWjRvHg9m8Wk+xNYLC487WGz+Halg8liyp/lTBab Hl9jtdg8/w+jxeVdc9gsZpzfx2Rx+zKvxdojd9ktnk64yGbRuvcIu8XPXfNYHEQ9Wpp72Dye bLrI6LFz1l12j02rOtk87lzbw+axf+4ado/73ceZPDYvqffo27KK0eP4je1MHp83yQVwR3HZ pKTmZJalFunbJXBlzPowi6VgvWzFhW2n2RoYj0p0MXJySAiYSBw6d4oRwhaTuHBvPVsXIxeH kMBSRolJZ9dAOX1MEi1Hb7OBVLEJaEr83XwTzBYR0JG43tPNDFLELLCBXWLd9H1gCWEBG4l9 Wz6AjWURUJV4v+gAK4jNK+Ai8eR9MzvEOjmJk8cmg8U5geJ/n+8FqxcScJZYsu096wRG3gWM DKsYRVNLkwuKk9JzDfWKE3OLS/PS9ZLzczcxQqLjyw7GxcesDjEKcDAq8fCaK7aGCLEmlhVX 5h5ilOBgVhLhXZjcESLEm5JYWZValB9fVJqTWnyIkYmDU6qB0S3x5iJLt3LRX1Pl/+XyxcU5 r9k476UoR9nz7TKWbz0+FX7fuimc/aat8Cy3p33aV9jEd99J+f++Z65BT2rqts/reHvOfVg6 Vfnl9V/90qx/PD7F3lH6YRorlRvObPf7UbW393elZtdJO0TTbkQ4ZjSerBCcr/pya5tMEqNI sIf3j1uCiwwClFiKMxINtZiLihMBSFUEimwCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141210_074935_651031_4FAFFAD6 X-CRM114-Status: GOOD ( 12.60 ) X-Spam-Score: -5.0 (-----) Cc: Alexandre Courbot , "moderated list:ARM/S5P EXYNOS AR..." , Mike Turquette , "open list:DRM PANEL DRIVERS" , "open list:GPIO SUBSYSTEM" , Greg Kroah-Hartman , Linus Walleij , Liam Girdwood , Rob Herring , Kishon Vijay Abraham I , Inki Dae , Andrzej Hajda , "open list:OPEN FIRMWARE AND..." , Thierry Reding , boris.brezillon@free-electrons.com, Mark Brown , Grant Likely , Russell King , "moderated list:ARM/CLKDEV SUPPORT" , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 Convert exynos_dsi driver to use restrack API. As a result driver have following advantages: - correctly handles removal of resources, - do not need to defer probing, so as a result the whole drm system initialization will not be postponed to late initcall, unless other components delays it, - simplified initialization. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 52 +++++++++++++-------------------- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 8201d79..53ac467 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -23,7 +23,7 @@ #include #include #include - +#include #include