drivers/leds/leds-netxbig: make LEDS_NETXBIG depend on LEDS_CLASS
authorAxel Lin <[email protected]>
Tue, 26 Jul 2011 00:13:16 +0000 (17:13 -0700)
committerLinus Torvalds <[email protected]>
Tue, 26 Jul 2011 03:57:15 +0000 (20:57 -0700)
We call led_classdev_register/led_classdev_unregister in
create_netxbig_led/delete_netxbig_led, thus make LEDS_NETXBIG depend on
LEDS_CLASS.

This patch fixes below build error if LEDS_CLASS is not configured.

    LD      .tmp_vmlinux1
  drivers/built-in.o: In function `create_netxbig_led':
  drivers/leds/leds-netxbig.c:350: undefined reference to `led_classdev_register'
  drivers/leds/leds-netxbig.c:361: undefined reference to `led_classdev_unregister'
  drivers/built-in.o: In function `delete_netxbig_led':
  drivers/leds/leds-netxbig.c:313: undefined reference to `led_classdev_unregister'

Signed-off-by: Axel Lin <[email protected]>
Cc: Richard Purdie <[email protected]>
Acked-by: Simon Guinot <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/leds/Kconfig

index 6c21c2986ca1dfd7b663958ed68ca67bbfdde832..b591e726a6fa53982b6e22c515d0ad980a6697df 100644 (file)
@@ -365,6 +365,7 @@ config LEDS_NS2
 config LEDS_NETXBIG
        tristate "LED support for Big Network series LEDs"
        depends on MACH_NET2BIG_V2 || MACH_NET5BIG_V2
+       depends on LEDS_CLASS
        default y
        help
          This option enable support for LEDs found on the LaCie 2Big