aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-03-13 16:59:54 -0400
committerThierry Reding <treding@nvidia.com>2018-03-14 06:51:24 -0400
commita8efe516316472ac771ba3f591295c7515e46172 (patch)
tree4e292ccc73a8437cf71e933efd25f94c04bba1d4
parente334d48b2cd4aa5d8557b766ef0cbb3072d6c5ba (diff)
drm/panel: rm68200: Add backlight dependency
Like many other panel drivers, this one fails to build when backlight support is disabled: drivers/gpu/drm/panel/panel-raydium-rm68200.o: In function `rm68200_probe': panel-raydium-rm68200.c:(.text+0x14a): undefined reference to `devm_of_find_backlight' This adds the appropriate dependency. Note that while include/linux/backlight.h provides a stub inline when backlight support is not enabled, this isn't enough to deal with the case where backlight support is built as a module but the panel driver is built-in, in which case linking will still fail as above. One way to avoid this is to add a dependency such as this: depends on BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=n but that is rather complex and misses the point that the panel support is mostly useless without backlight support. Fixes: 2b7ed18bed1a ("drm/panel: Add support for Raydium RM68200 panel driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> [treding@nvidia.com: clarify the need for the dependency] Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180313210015.3344380-1-arnd@arndb.de
-rw-r--r--drivers/gpu/drm/panel/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig
index 077bc58c1913..25682ff3449a 100644
--- a/drivers/gpu/drm/panel/Kconfig
+++ b/drivers/gpu/drm/panel/Kconfig
@@ -112,6 +112,7 @@ config DRM_PANEL_RAYDIUM_RM68200
112 tristate "Raydium RM68200 720x1280 DSI video mode panel" 112 tristate "Raydium RM68200 720x1280 DSI video mode panel"
113 depends on OF 113 depends on OF
114 depends on DRM_MIPI_DSI 114 depends on DRM_MIPI_DSI
115 depends on BACKLIGHT_CLASS_DEVICE
115 help 116 help
116 Say Y here if you want to enable support for Raydium RM68200 117 Say Y here if you want to enable support for Raydium RM68200
117 720x1280 DSI video mode panel. 118 720x1280 DSI video mode panel.