ralink: fix c&p error in gpio driver
authorJohn Crispin <john@openwrt.org>
Thu, 7 Nov 2013 12:45:48 +0000 (12:45 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 7 Nov 2013 12:45:48 +0000 (12:45 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38668

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

index 989d2f36d4ae769a57131435746117ddc695d02c..ffd360a2c24b71d5e0c05a1c39c7eb7d5fdbbad6 100644 (file)
@@ -271,7 +271,7 @@ Cc: linux-gpio@vger.kernel.org
 +              if ((rg->rising | rg->falling) & mask)
 +                      return 0;
 +
-+              type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_RISING;
++              type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING;
 +      }
 +
 +      if (type & IRQ_TYPE_EDGE_RISING)
@@ -279,7 +279,7 @@ Cc: linux-gpio@vger.kernel.org
 +      else
 +              rg->rising &= mask;
 +
-+      if (type & IRQ_TYPE_EDGE_RISING)
++      if (type & IRQ_TYPE_EDGE_FALLING)
 +              rg->falling |= mask;
 +      else
 +              rg->falling &= mask;