Commit 7628166d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Sean Paul

tinydrm: add backlight dependency

Calling devm_of_find_backlight directly means we get a link failure
without CONFIG_BACKLIGHT_CLASS_DEVICE:

drivers/gpu/drm/tinydrm/mi0283qt.o: In function `mi0283qt_probe':
mi0283qt.c:(.text+0x684): undefined reference to `devm_of_find_backlight'

This adds an explicit Kconfig dependency for it. While I did not
observe that failure for st7735r, I assume the same change is needed
there for the same reason.

Fixes: d1a2e700 ("drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180228134111.2042877-1-arnd@arndb.de
parent 68824bb5
...@@ -23,6 +23,7 @@ config TINYDRM_ILI9225 ...@@ -23,6 +23,7 @@ config TINYDRM_ILI9225
config TINYDRM_MI0283QT config TINYDRM_MI0283QT
tristate "DRM support for MI0283QT" tristate "DRM support for MI0283QT"
depends on DRM_TINYDRM && SPI depends on DRM_TINYDRM && SPI
depends on BACKLIGHT_CLASS_DEVICE
select TINYDRM_MIPI_DBI select TINYDRM_MIPI_DBI
help help
DRM driver for the Multi-Inno MI0283QT display panel DRM driver for the Multi-Inno MI0283QT display panel
...@@ -54,6 +55,7 @@ config TINYDRM_ST7586 ...@@ -54,6 +55,7 @@ config TINYDRM_ST7586
config TINYDRM_ST7735R config TINYDRM_ST7735R
tristate "DRM support for Sitronix ST7735R display panels" tristate "DRM support for Sitronix ST7735R display panels"
depends on DRM_TINYDRM && SPI depends on DRM_TINYDRM && SPI
depends on BACKLIGHT_CLASS_DEVICE
select TINYDRM_MIPI_DBI select TINYDRM_MIPI_DBI
help help
DRM driver Sitronix ST7735R with one of the following LCDs: DRM driver Sitronix ST7735R with one of the following LCDs:
......
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