From: Hoegeun Kwon Subject: Re: [PATCH 3/3] drm/panel: add backlight dependency for sitronix-st7789v Date: Thu, 20 Apr 2017 10:37:43 +0900 Message-ID: References: <20170419175939.189098-2-arnd@arndb.de> <20170419180326.303994-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1858179232==" Return-path: Received: from epoutp01.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 55F2A6E04A for ; Thu, 20 Apr 2017 01:37:42 +0000 (UTC) In-reply-to: <20170419180326.303994-1-arnd@arndb.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Arnd Bergmann , Thierry Reding , David Airlie Cc: Laurent Pinchart , Donghwa Lee , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Maxime Ripard , Hoegeun Kwon List-Id: dri-devel@lists.freedesktop.org This is a multi-part message in MIME format. --===============1858179232== Content-type: multipart/alternative; boundary="------------2FA167BC4616DF8AE0D34961" This is a multi-part message in MIME format. --------------2FA167BC4616DF8AE0D34961 Content-Type: text/plain; charset="windows-1252"; format="flowed" Content-Transfer-Encoding: 7bit On 04/20/2017 03:03 AM, Arnd Bergmann wrote: > Without the dependency, we run into a link error: > > drivers/gpu/drm/panel/panel-sitronix-st7789v.o: In function `st7789v_probe': > panel-sitronix-st7789v.c:(.text.st7789v_probe+0xc0): undefined reference to `of_find_backlight_by_node' > > Fixes: 7142afb3a186 ("drm/panel: Add driver for sitronix ST7789V LCD controller") > Signed-off-by: Arnd Bergmann Reviewed-by: Hoegeun Kwon Best regards, Hoegeun > --- > 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 6eb9774284df..04d068177e16 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -101,6 +101,7 @@ config DRM_PANEL_SHARP_LS043T1LE01 > config DRM_PANEL_SITRONIX_ST7789V > tristate "Sitronix ST7789V panel" > depends on OF && SPI > + depends on BACKLIGHT_CLASS_DEVICE > help > Say Y here if you want to enable support for the Sitronix > ST7789V controller for 240x320 LCD panels --------------2FA167BC4616DF8AE0D34961 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 7bit On 04/20/2017 03:03 AM, Arnd Bergmann wrote:
Without the dependency, we run into a link error:

drivers/gpu/drm/panel/panel-sitronix-st7789v.o: In function `st7789v_probe':
panel-sitronix-st7789v.c:(.text.st7789v_probe+0xc0): undefined reference to `of_find_backlight_by_node'

Fixes: 7142afb3a186 ("drm/panel: Add driver for sitronix ST7789V LCD controller")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Reviewed-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>

Best regards,
Hoegeun

---
 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 6eb9774284df..04d068177e16 100644
--- a/drivers/gpu/drm/panel/Kconfig
+++ b/drivers/gpu/drm/panel/Kconfig
@@ -101,6 +101,7 @@ config DRM_PANEL_SHARP_LS043T1LE01
 config DRM_PANEL_SITRONIX_ST7789V
 	tristate "Sitronix ST7789V panel"
 	depends on OF && SPI
+	depends on BACKLIGHT_CLASS_DEVICE
 	help
 	  Say Y here if you want to enable support for the Sitronix
 	  ST7789V controller for 240x320 LCD panels

--------------2FA167BC4616DF8AE0D34961-- --===============1858179232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1858179232==--