From patchwork Wed Dec 10 15:48:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 5469971 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A3DEE9F47A for ; Wed, 10 Dec 2014 15:49:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C5EBC2012B for ; Wed, 10 Dec 2014 15:49:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A9D6F20166 for ; Wed, 10 Dec 2014 15:49:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 222BF6E658; Wed, 10 Dec 2014 07:49:23 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E2536E63E for ; Wed, 10 Dec 2014 07:49:21 -0800 (PST) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NGD00FPVIT5Z4A0@mailout1.w1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 10 Dec 2014 15:53:29 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-f9-54886b802b26 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 7B.39.07834.08B68845; Wed, 10 Dec 2014 15:49:20 +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:20 +0000 (GMT) From: Andrzej Hajda To: linux-kernel@vger.kernel.org (open list) Subject: [RFC 15/15] drm/panel/ld9040: convert to restrack API Date: Wed, 10 Dec 2014 16:48:33 +0100 Message-id: <1418226513-14105-16-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+NgFrrGLMWRmVeSWpSXmKPExsVy+t/xy7oN2R0hBiuXSlvcWneO1eLAi4Us FlMfPmGzmH8EyL3y9T2bxblXj1gsDvzZwWjRvHg9m8Wk+xNYLC487WGz+Halg8liyp/lTBab Hl9jtdg8/w+jxeVdc9gsZpzfx2Rx+zKvxdojd9ktnk64yGbRuvcIu8XPXfNYHEQ9Wpp72Dye bLrI6LFz1l12j02rOtk87lzbw+axf+4ado/73ceZPDYvqffo27KK0eP4je1MHp83yQVwR3HZ pKTmZJalFunbJXBldJ3+zFTQL17xtCuhgXGScBcjB4eEgInE0rtAJieQKSZx4d56NhBbSGAp o8S2jzJdjFxAdh+TxMutu9hBEmwCmhJ/N98EKxIR0JG43tPNDFLELLCBXWLd9H1gCWEBO4lZ i/cxgtgsAqoSp76cB7N5BVwk2s5MYYfYJidx8thkVhCbEyj+9/leRojNzhJLtr1nncDIu4CR YRWjaGppckFxUnquoV5xYm5xaV66XnJ+7iZGSFx82cG4+JjVIUYBDkYlHl5zxdYQIdbEsuLK 3EOMEhzMSiK8C5M7QoR4UxIrq1KL8uOLSnNSiw8xMnFwSjUwzp43UcH/YaOnA/s+kYNsn+4Z L7YVDmmeoso0f3tHjcTu6+ylKv/cGq2PGxUsX3W2tepO40q24NfzA/bKlk4/Pz+Vq6pg/tY3 jZOrd3dldpx5N8cy+Pee5F1Lu6/ufyMnYOImmawnmaJxJ2LRNS++ud9m5B9PVXomujeQRbnu wTquE938NgYpSizFGYmGWsxFxYkAnL/Vk2kCAAA= Cc: Alexandre Courbot , "moderated list:ARM/S5P EXYNOS AR..." , Mike Turquette , "open list:DRM PANEL DRIVERS" , "open list:GPIO SUBSYSTEM" , Greg Kroah-Hartman , Liam Girdwood , Rob Herring , Kishon Vijay Abraham I , Andrzej Hajda , "open list:OPEN FIRMWARE AND..." , Mark Brown , Grant Likely , Russell King , "moderated list:ARM/CLKDEV SUPPORT" , Marek Szyprowski 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 Convert ld9040 panel 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 panel becomes available as soon as possible, in case of deferred probing it was late_initcall, - simplified initialization. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/panel/panel-ld9040.c | 41 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c index 3337f30..619610e 100644 --- a/drivers/gpu/drm/panel/panel-ld9040.c +++ b/drivers/gpu/drm/panel/panel-ld9040.c @@ -17,6 +17,7 @@ #include #include #include +#include #include