Commit a8efe516 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Thierry Reding

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: 2b7ed18b ("drm/panel: Add support for Raydium RM68200 panel driver")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
[treding@nvidia.com: clarify the need for the dependency]
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180313210015.3344380-1-arnd@arndb.de
parent e334d48b
...@@ -112,6 +112,7 @@ config DRM_PANEL_RAYDIUM_RM68200 ...@@ -112,6 +112,7 @@ config DRM_PANEL_RAYDIUM_RM68200
tristate "Raydium RM68200 720x1280 DSI video mode panel" tristate "Raydium RM68200 720x1280 DSI video mode panel"
depends on OF depends on OF
depends on DRM_MIPI_DSI depends on DRM_MIPI_DSI
depends on BACKLIGHT_CLASS_DEVICE
help help
Say Y here if you want to enable support for Raydium RM68200 Say Y here if you want to enable support for Raydium RM68200
720x1280 DSI video mode panel. 720x1280 DSI video mode panel.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment