ralink: fix typo in gpio irq handling
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 9 Dec 2013 17:29:24 +0000 (17:29 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 9 Dec 2013 17:29:24 +0000 (17:29 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39018 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index ffd360a..fd7f7f4 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;
 +}