broadcom-diag: reset the interrupt mask of configured leds to avoid spurious interrupts
authorFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jul 2008 01:33:14 +0000 (01:33 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jul 2008 01:33:14 +0000 (01:33 +0000)
SVN-Revision: 12030

package/broadcom-diag/src/diag.c

index 8f2a0c1705935d6944a2f30b74d3be8dd0da576c..cde681a0f2e3744fbe22a7d113f50ad895322a7e 100644 (file)
@@ -1087,6 +1087,7 @@ static void register_leds(struct led_t *l)
        gpio_outen(mask, oe_mask);
        gpio_control(mask, 0);
        gpio_out(mask, val);
+       gpio_intmask(mask, 0);
 }
 
 static void unregister_leds(struct led_t *l)