drm/panel: S6E3HA2 needs backlight code
authorArnd Bergmann <arnd@arndb.de>
Wed, 19 Apr 2017 17:59:18 +0000 (19:59 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 14 Jun 2017 18:06:27 +0000 (20:06 +0200)
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 <arnd@arndb.de>
Reviewed-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170419175939.189098-2-arnd@arndb.de
drivers/gpu/drm/panel/Kconfig

index 9334d86b0da350126b92855502e5b6b49ae43123..6350a263539ef5f9f63da985febe285b3ee74599 100644 (file)
@@ -77,6 +77,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