aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-31 01:33:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-31 01:33:14 +0000
commit8d9d397377648bfd52fff72e5e211e0f7f51d4c5 (patch)
treedaacc772cc8e590e4f28ce6cac7d9e0517d8a85c /package/broadcom-diag
parent9d9ce452b394f978f60e1efc4983e29d0790f648 (diff)
downloadmaster-187ad058-8d9d397377648bfd52fff72e5e211e0f7f51d4c5.tar.gz
master-187ad058-8d9d397377648bfd52fff72e5e211e0f7f51d4c5.tar.bz2
master-187ad058-8d9d397377648bfd52fff72e5e211e0f7f51d4c5.zip
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')
-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 8f2a0c1705..cde681a0f2 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)