Commit b20c5249 authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] backlight: Fix compile error if CONFIG_FB is unset

With Andrew Zabolotny <zap@homelink.ru>

   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
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e2d6be2f
......@@ -1107,7 +1107,7 @@ if FB || SGI_NEWPORT_CONSOLE
source "drivers/video/logo/Kconfig"
endif
if SYSFS
if FB && SYSFS
source "drivers/video/backlight/Kconfig"
endif
......
......@@ -11,6 +11,7 @@ menuconfig BACKLIGHT_LCD_SUPPORT
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 BACKLIGHT_DEVICE
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
......
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