backlight: Fix compile error if CONFIG_FB is unset
Subsystems (2)
PATCH 5/6 backlight: Fix compile error if CONFIG_FB is unset
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o(.text+0x9bfa): In function `lcd_device_register':
: undefined reference to fb_register_client' drivers/built-in.o(.text+0x9ce3): In function lcd_device_unregister':
: undefined reference to fb_unregister_client' drivers/built-in.o(.text+0xa16a): In function backlight_device_register':
: undefined reference to fb_register_client' drivers/built-in.o(.text+0xa253): In function backlight_device_unregister':
: undefined reference to `fb_unregister_client'
make: *** [.tmp_vmlinux1] Error 1
Fix from Andrew Zabolotny <[email protected]>
---
Kconfig | 2 +- backlight/Kconfig | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/video/Kconfig +1 -1
@@ -1107,7 +1107,7 @@ source "drivers/video/logo/Kconfig" endif -if SYSFS +if FB && SYSFS source "drivers/video/backlight/Kconfig" endif
drivers/video/backlight/Kconfig +2 -0
@@ -11,6 +11,7 @@ config BACKLIGHT_CLASS_DEVICE tristate "Lowlevel Backlight controls" depends on BACKLIGHT_LCD_SUPPORT + default m help This framework adds support for low-level control of the LCD backlight. This includes support for brightness and power.
@@ -26,6 +27,7 @@ config LCD_CLASS_DEVICE tristate "Lowlevel LCD controls" depends on BACKLIGHT_LCD_SUPPORT + default m help This framework adds support for low-level control of LCD. Some framebuffer devices connect to platform-specific LCD modules
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt