Fix compile failure if BACKLIGHT_CLASS_DEVICE is not selected
Subsystems (3)
From 48c709c621dbd5505b524e0216a3232ebd0033a8 Mon Sep 17 00:00:00 2001
From: Ian Molton <[email protected]>
Date: Tue, 13 Jan 2015 12:46:54 +0000
Subject: [PATCH] DRM: Simple panel driver depends on backlight
The DRM_PANEL_SIMPLE option compiles code that requires the symbol of_find_backlight_by_node. This is in drivers/video/backlight/backlight.c and can optionally not be built. Make DRM_PANEL_SIMPLE depend on BACKLIGHT_CLASS_DEVICE to resolve this.
drivers/built-in.o: In function `panel_simple_platform_probe':
debugfs.c:(.text+0x94da4): undefined reference to `of_find_backlight_by_node' /home/ian/Work/swan/linux/Makefile:923: recipe for target 'vmlinux' failed
Signed-off-by Ian Molton <[email protected]>
--- drivers/gpu/drm/panel/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/Kconfig +1 -1
@@ -9,7 +9,7 @@ menu "Display Panels" config DRM_PANEL_SIMPLE tristate "support for simple panels" - depends on OF + depends on OF && 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
Signature · 6 lines
2.1.0 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel