drm: panel/simple: add backlight dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Jan 2015 13:48:06 +0000 (14:48 +0100)
committerDave Airlie <airlied@gmail.com>
Sat, 31 Jan 2015 00:11:45 +0000 (10:11 +1000)
The simple panel code uses the backlight interface to
find a device, which fails when backlight is disabled:

drivers/built-in.o: In function `panel_simple_platform_probe':
:(.text+0xd3c48): undefined reference to `of_find_backlight_by_node'

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/panel/Kconfig

index 84506053a7ca7411d88bbbfbf8d20ba6bf03ae19..d84583776d50609d846e34014a4dc94c76c0a51d 100644 (file)
@@ -10,6 +10,7 @@ menu "Display Panels"
 config DRM_PANEL_SIMPLE
        tristate "support for simple panels"
        depends on OF
+       depends on BACKLIGHT_CLASS_DEVICE
        help
          DRM panel driver for dumb panels that need at most a regulator and
          a GPIO to be powered up. Optionally a backlight can be attached so