[adm5120] disable unsupported boards in the LED driver by default
authorGabor Juhos <juhosg@openwrt.org>
Sun, 4 Nov 2007 17:57:09 +0000 (17:57 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 4 Nov 2007 17:57:09 +0000 (17:57 +0000)
SVN-Revision: 9500

target/linux/adm5120/files/drivers/leds/leds-adm5120.c
target/linux/adm5120/router_be/config-2.6.23
target/linux/adm5120/router_le/config-2.6.23

index 368a13b7c63c5b7fecdd5b94a614139b45b58934..fb1f66241feed848d23a2bb019ec509328c8d28a 100644 (file)
@@ -303,7 +303,7 @@ adm5120_leds_init(void)
 
        mach = adm5120_leds_findmach(mips_machtype);
        if (mach == NULL) {
-               /* the board is not yet supported */
+               printk(KERN_ERR "leds-adm5120: unsupported board\n");
                ret = -EINVAL;
                goto err;
        }
index 224c0ff786cfff4b6faf761249622e4047792694..38c643a522acb67eb09f772b6af26e214967a121 100644 (file)
@@ -89,7 +89,7 @@ CONFIG_IP_NF_TARGET_CLUSTERIP=m
 CONFIG_IRQ_CPU=y
 # CONFIG_JOLIET is not set
 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_GPIO=m
 CONFIG_LEDS_TRIGGER_ADM5120_SWITCH=m
index 7727187fac460f2469481cb3e09d45130992e644..16dc3d27bdcc1fd657e1199dda96110f1a9bd5b1 100644 (file)
@@ -90,7 +90,7 @@ CONFIG_IP_NF_TARGET_CLUSTERIP=m
 CONFIG_IRQ_CPU=y
 # CONFIG_JOLIET is not set
 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_GPIO=m
 CONFIG_LEDS_TRIGGER_ADM5120_SWITCH=m