disable unsupported boards in the LED driver by default

SVN-Revision: 9500
This commit is contained in:
Gabor Juhos 2007-11-04 17:57:09 +00:00
parent 5fb714cca9
commit 3c3dcddb08
3 changed files with 3 additions and 3 deletions

View file

@ -303,7 +303,7 @@ adm5120_leds_init(void)
mach = adm5120_leds_findmach(mips_machtype); mach = adm5120_leds_findmach(mips_machtype);
if (mach == NULL) { if (mach == NULL) {
/* the board is not yet supported */ printk(KERN_ERR "leds-adm5120: unsupported board\n");
ret = -EINVAL; ret = -EINVAL;
goto err; goto err;
} }

View file

@ -89,7 +89,7 @@ CONFIG_IP_NF_TARGET_CLUSTERIP=m
CONFIG_IRQ_CPU=y CONFIG_IRQ_CPU=y
# CONFIG_JOLIET is not set # CONFIG_JOLIET is not set
CONFIG_LEDS_ADM5120=m CONFIG_LEDS_ADM5120=m
CONFIG_LEDS_ADM5120_DIAG=y # CONFIG_LEDS_ADM5120_DIAG is not set
# CONFIG_LEDS_ADM5120_EXPERIMENTAL is not set # CONFIG_LEDS_ADM5120_EXPERIMENTAL is not set
CONFIG_LEDS_GPIO=m CONFIG_LEDS_GPIO=m
CONFIG_LEDS_TRIGGER_ADM5120_SWITCH=m CONFIG_LEDS_TRIGGER_ADM5120_SWITCH=m

View file

@ -90,7 +90,7 @@ CONFIG_IP_NF_TARGET_CLUSTERIP=m
CONFIG_IRQ_CPU=y CONFIG_IRQ_CPU=y
# CONFIG_JOLIET is not set # CONFIG_JOLIET is not set
CONFIG_LEDS_ADM5120=m CONFIG_LEDS_ADM5120=m
CONFIG_LEDS_ADM5120_DIAG=y # CONFIG_LEDS_ADM5120_DIAG is not set
# CONFIG_LEDS_ADM5120_EXPERIMENTAL is not set # CONFIG_LEDS_ADM5120_EXPERIMENTAL is not set
CONFIG_LEDS_GPIO=m CONFIG_LEDS_GPIO=m
CONFIG_LEDS_TRIGGER_ADM5120_SWITCH=m CONFIG_LEDS_TRIGGER_ADM5120_SWITCH=m