From: Felix Fietkau Date: Tue, 5 Aug 2008 16:42:43 +0000 (+0000) Subject: atheros: fix setting the gpio interrupt level when registering a gpio interrupt X-Git-Tag: reboot~25879 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5eab3b092d7fd55d0bc12761b576ec77708fd91c;p=openwrt%2Fstaging%2Fjogo.git atheros: fix setting the gpio interrupt level when registering a gpio interrupt SVN-Revision: 12139 --- 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);