backlight: fix ot200_bl build
authorRandy Dunlap <rdunlap@xenotime.net>
Fri, 23 Mar 2012 22:02:03 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:33 +0000 (16:58 -0700)
Fix build error when GPIO_CS5535 is not enabled:

  drivers/built-in.o: In function `ot200_backlight_probe':
  ot200_bl.c:(.text+0x205bf): undefined reference to `cs5535_gpio_set'
  ot200_bl.c:(.text+0x205d1): undefined reference to `cs5535_gpio_set'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/Kconfig

index ed68fde54454fb46b56e0289743474de32ef1db1..7ed9991fa74785cb8d232954c10d0925caed59ab 100644 (file)
@@ -343,7 +343,7 @@ config BACKLIGHT_LP855X
 
 config BACKLIGHT_OT200
        tristate "Backlight driver for ot200 visualisation device"
-       depends on BACKLIGHT_CLASS_DEVICE && CS5535_MFGPT
+       depends on BACKLIGHT_CLASS_DEVICE && CS5535_MFGPT && GPIO_CS5535
        help
          To compile this driver as a module, choose M here: the module will be
          called ot200_bl.