Prev: [PATCH -mm] call_usermodehelper: call info->init() after set_user_nice()
Next: WebCT Service Helpdesk
From: Randy Dunlap on 10 Mar 2010 14:50 From: Randy Dunlap <randy.dunlap(a)oracle.com> LEDS_NET5501 selects LEDS_TRIGGER_DEFAULT_ON even when the symbol LEDS_TRIGGERS is not enabled. This causes build errors, so make LEDS_NET5501 depend on LEDS_TRIGGERS to prevent the build errors. drivers/leds/ledtrig-default-on.c:25: error: variable 'defon_led_trigger' has initializer but incomplete type drivers/leds/ledtrig-default-on.c:26: error: unknown field 'name' specified in initializer drivers/leds/ledtrig-default-on.c:26: warning: excess elements in struct initializer drivers/leds/ledtrig-default-on.c:26: warning: (near initialization for 'defon_led_trigger') drivers/leds/ledtrig-default-on.c:27: error: unknown field 'activate' specified in initializer drivers/leds/ledtrig-default-on.c:27: warning: excess elements in struct initializer drivers/leds/ledtrig-default-on.c:27: warning: (near initialization for 'defon_led_trigger') drivers/leds/ledtrig-default-on.c:32: error: implicit declaration of function 'led_trigger_register' drivers/leds/ledtrig-default-on.c:37: error: implicit declaration of function 'led_trigger_unregister' Signed-off-by: Randy Dunlap <randy.dunlap(a)oracle.com> Cc: Bjarke Istrup Pedersen <gurligebis(a)gentoo.org> --- drivers/leds/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- mmotm-2010-0309-1915.orig/drivers/leds/Kconfig +++ mmotm-2010-0309-1915/drivers/leds/Kconfig @@ -69,7 +69,8 @@ config LEDS_NET48XX config LEDS_NET5501 tristate "LED Support for Soekris net5501 series Error LED" - depends on LEDS_CLASS && LEDS_GPIO_PLATFORM && GPIO_CS5535 + depends on LEDS_CLASS && LEDS_TRIGGERS + depends on LEDS_GPIO_PLATFORM && GPIO_CS5535 select LEDS_TRIGGER_DEFAULT_ON default n help -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |