ralink: fix typo in gpio irq handling
authorJohn Crispin <john@openwrt.org>
Mon, 9 Dec 2013 17:29:24 +0000 (17:29 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 9 Dec 2013 17:29:24 +0000 (17:29 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39018

target/linux/ramips/patches-3.10/0006-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch

index ffd360a2c24b71d5e0c05a1c39c7eb7d5fdbbad6..fd7f7f4f030d8e50204d15e28b2bbe416b4e6a6e 100644 (file)
@@ -277,12 +277,12 @@ Cc: linux-gpio@vger.kernel.org
 +      if (type & IRQ_TYPE_EDGE_RISING)
 +              rg->rising |= mask;
 +      else
-+              rg->rising &= mask;
++              rg->rising &= ~mask;
 +
 +      if (type & IRQ_TYPE_EDGE_FALLING)
 +              rg->falling |= mask;
 +      else
-+              rg->falling &= mask;
++              rg->falling &= ~mask;
 +
 +      return 0;
 +}