From patchwork Wed Apr 19 17:59:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9688585 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 A1B4D6037F for ; Wed, 19 Apr 2017 18:01:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98A1A283E2 for ; Wed, 19 Apr 2017 18:01:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CA79283FB; Wed, 19 Apr 2017 18:01:05 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM 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 2CB66283E2 for ; Wed, 19 Apr 2017 18:01:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C912895E7; Wed, 19 Apr 2017 18:01:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTPS id E0F38895E7 for ; Wed, 19 Apr 2017 18:01:03 +0000 (UTC) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0LxKXe-1byTkw0q0g-016znk; Wed, 19 Apr 2017 20:00:56 +0200 From: Arnd Bergmann To: Thierry Reding , David Airlie Subject: [PATCH 2/3] drm/panel: S6E3HA2 needs backlight code Date: Wed, 19 Apr 2017 19:59:18 +0200 Message-Id: <20170419175939.189098-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170419175939.189098-1-arnd@arndb.de> References: <20170419175939.189098-1-arnd@arndb.de> X-Provags-ID: V03:K0:EsyVu7F/tZ++FLcmPOQzEcVe9btK48IKgOUXVXK1bIPmpjwvRHr uGmMWY+CKE2Dj5A5Z9j0aAnr1m30UbvGlRrSAqr3TBTald1hn7SU+kK6noBUK+PiOMt8j/b LBMzGrGnqdGAp9RdTCpS18+Pqtwou3ljGCsr7VgaF7w3XKmCK6vXoPlT9nHB4Q3fmXaIJYS y8arHeSz2csW/ap2oix2A== X-UI-Out-Filterresults: notjunk:1; V01:K0:uOC2gLFubTY=:mSQFjOasVHXcWQ/w+ZNrFl e+bkTPIilWT56vFm+S3qFwMBRB90ynxuu0aLE2JuaiPHi1KhHX9y/T98BtYC0z0KIwJ2kwSvS 3394RfLaVOhVVbEfZCRDDD6FF2VGRRveFZy0IlN8xvOTGBY80D4ERR4P2HCRQP+SfcmChOZnJ mQG65yiBCn1mFtta+w9C9xHUIF8H7aFSj+0PD1u6m1xTz1m8rHSn+xHFQr1EUxhx/BxBhRtPV 4BFaj5F544CQ5cO83SLS0Aa6l/tY9QQTeuzIHKUqLczGM7rKdtJl42czp84wJrSBw2GtwvBvQ 7TPuhNIbwPT6W//Sat5bAZ2XFQWPskhsLxfIpQYlUygOkm8TKYe1eG5efDSn9JZp1SaLQps4R ViuYYbv3yxMq9K7QbAWh18ZzYZmTdgRCQreLfBlX7aFayfeyH9+PZ6jOI/qO3tRBt7nJS0jJD Ktyx1Lm/uhwoby2lSqp2efvFK3DRYGEXIxPSAMKq1KZbvJppku0kwAhqC4OQhY/6zM1BhaqR1 51PJy0u4lJUqIIvxn1uwjeQuw9o1ItsSmvjEZJDqiOoTdQfHUJhIl5FNMadNTpif2/wIIlsvy AJZpwp3sruScusYBQ1FKcZ1xJ2KBNAgAFClB8zstH8dYT+gizjHUkhEaVP0jQ/PMLlslGj5nf vknGvo5dY7EA7KzswhZg/Pue/MdZ8pl5sQFnXSkvcWGqwmVT/KGIKQGsV9IOxx2N148Y= Cc: Laurent Pinchart , Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Vinay Simha BN , Hoegeun Kwon 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 The new S6E3HA2 driver fails to link when backlight is disabled: ERROR: "backlight_device_register" [drivers/gpu/drm/panel/panel-samsung-s6e3ha2.ko] undefined! ERROR: "backlight_device_unregister" [drivers/gpu/drm/panel/panel-samsung-s6e3ha2.ko] undefined! This adds a Kconfig dependency like we have it for some other panel drivers. Fixes: ed29f9426d9b ("drm/panel: Add support for S6E3HA2 panel driver on TM2 board") Signed-off-by: Arnd Bergmann Reviewed-by: Hoegeun Kwon --- drivers/gpu/drm/panel/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 3e29a9903303..6eb9774284df 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -66,6 +66,7 @@ config DRM_PANEL_SAMSUNG_S6E3HA2 tristate "Samsung S6E3HA2 DSI video mode panel" depends on OF depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE select VIDEOMODE_HELPERS config DRM_PANEL_SAMSUNG_S6E8AA0