ralink: fix c&p error in gpio driver
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38668
This commit is contained in:
parent
1a368e8616
commit
4bb29e9df6
1 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ Cc: linux-gpio@vger.kernel.org
|
||||||
+ if ((rg->rising | rg->falling) & mask)
|
+ if ((rg->rising | rg->falling) & mask)
|
||||||
+ return 0;
|
+ 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)
|
+ if (type & IRQ_TYPE_EDGE_RISING)
|
||||||
|
@ -279,7 +279,7 @@ Cc: linux-gpio@vger.kernel.org
|
||||||
+ else
|
+ else
|
||||||
+ rg->rising &= mask;
|
+ rg->rising &= mask;
|
||||||
+
|
+
|
||||||
+ if (type & IRQ_TYPE_EDGE_RISING)
|
+ if (type & IRQ_TYPE_EDGE_FALLING)
|
||||||
+ rg->falling |= mask;
|
+ rg->falling |= mask;
|
||||||
+ else
|
+ else
|
||||||
+ rg->falling &= mask;
|
+ rg->falling &= mask;
|
||||||
|
|
Loading…
Reference in a new issue