From patchwork Wed Jan 28 13:48:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 5728261 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 196D0BF440 for ; Wed, 28 Jan 2015 13:49:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E45C20256 for ; Wed, 28 Jan 2015 13:49:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 989FD20225 for ; Wed, 28 Jan 2015 13:48:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0E1BB6E6E1; Wed, 28 Jan 2015 05:48:59 -0800 (PST) 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 ESMTP id 8C4256E6E1 for ; Wed, 28 Jan 2015 05:48:57 -0800 (PST) Received: from wuerfel.lan. ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0LodXq-1XjtJr3WPa-00gUAK; Wed, 28 Jan 2015 14:48:25 +0100 From: Arnd Bergmann To: David Airlie , Thierry Reding Subject: [PATCH 2/5] drm: panel/simple: add backlight dependency Date: Wed, 28 Jan 2015 14:48:06 +0100 Message-Id: <1422452889-415782-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.1.0.rc2 In-Reply-To: <1422452889-415782-1-git-send-email-arnd@arndb.de> References: <1422452889-415782-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:ic3tdvlgkbU/PxRRz1zBLSW1xzCjDtZkG84O748x8UMiJarw0sD 0rfMxWUkSzkT4qdEj7U/N/QB5DVgMl7bSt6zKzPO5GSHdVPhK/a1hEuoZ4ChLVs5foAoEtO Cge8UnfdkTSoGM8y0NdK/3cwjga2VLJef/sN6wLeQcURih+5TDtUynyS5MtnqMYZiv20p9N HV56Y9aIWIYWywCAmZFig== X-UI-Out-Filterresults: notjunk:1; Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, Benjamin Gaignard , linux-arm-kernel@lists.infradead.org, Mark Yao 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 The simple panel code uses the backlight interface to find a device, which fails when backlight is disabled: drivers/built-in.o: In function `panel_simple_platform_probe': :(.text+0xd3c48): undefined reference to `of_find_backlight_by_node' Signed-off-by: Arnd Bergmann --- 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 84506053a7ca..d84583776d50 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -10,6 +10,7 @@ menu "Display Panels" config DRM_PANEL_SIMPLE tristate "support for simple panels" depends on OF + depends on BACKLIGHT_CLASS_DEVICE help DRM panel driver for dumb panels that need at most a regulator and a GPIO to be powered up. Optionally a backlight can be attached so