summaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag/src
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-07-31 01:33:14 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-07-31 01:33:14 +0000
commit4a91835511c5ed10f6dab829697b1be6268fa638 (patch)
treedaacc772cc8e590e4f28ce6cac7d9e0517d8a85c /package/broadcom-diag/src
parent36b99718212dde5ae1d17ec04268fbe24b72b1de (diff)
broadcom-diag: reset the interrupt mask of configured leds to avoid spurious interrupts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12030 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r--package/broadcom-diag/src/diag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 8f2a0c170..cde681a0f 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -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)