aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-05 16:42:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-05 16:42:43 +0000
commit1a10fbd870366f5a24067002e6eb33f172c5742f (patch)
tree26ab8d9ab478994a7e30b553c880b8a915ab5afc /target/linux
parenta6d87b47b2bd987e9d7d36c44b7b03ee9e39ef08 (diff)
downloadupstream-1a10fbd870366f5a24067002e6eb33f172c5742f.tar.gz
upstream-1a10fbd870366f5a24067002e6eb33f172c5742f.tar.bz2
upstream-1a10fbd870366f5a24067002e6eb33f172c5742f.zip
atheros: fix setting the gpio interrupt level when registering a gpio interrupt
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12139 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/atheros/files/arch/mips/atheros/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/atheros/files/arch/mips/atheros/gpio.c b/target/linux/atheros/files/arch/mips/atheros/gpio.c
index 26fba06446..c51de6164d 100644
--- a/target/linux/atheros/files/arch/mips/atheros/gpio.c
+++ b/target/linux/atheros/files/arch/mips/atheros/gpio.c
@@ -162,7 +162,7 @@ static void ar5315_gpio_intr_enable(unsigned int irq) {
/* Set the gpio level trigger mode */
/* reg &= ~(AR5315_GPIO_INT_LVL_M(i)); */
- reg |= AR5315_GPIO_INT_LVL(i);
+ reg |= AR5315_GPIO_INT_LVL(def_lvl);
/* Enable the gpio pin */
reg &= ~(AR5315_GPIO_INT_M);