summaryrefslogtreecommitdiff
path: root/target/linux/atheros/files
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
commit5eab3b092d7fd55d0bc12761b576ec77708fd91c (patch)
tree5702b554ba617b7c8fb2a35997e32ed07d28547d /target/linux/atheros/files
parentd43337e8f79c580df0cd15e3c55d4d896d35538d (diff)
downloadmtk-20170518-5eab3b092d7fd55d0bc12761b576ec77708fd91c.zip
mtk-20170518-5eab3b092d7fd55d0bc12761b576ec77708fd91c.tar.gz
mtk-20170518-5eab3b092d7fd55d0bc12761b576ec77708fd91c.tar.bz2
atheros: fix setting the gpio interrupt level when registering a gpio interrupt
SVN-Revision: 12139
Diffstat (limited to 'target/linux/atheros/files')
-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 26fba06..c51de61 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);