mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ralink: fix c&p error in gpio driver
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38668 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
41d072938e
commit
123cbcd063
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user