ralink: fix typo in gpio irq handling
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39018 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
4ad135094f
commit
9beda5ac39
|
@ -277,12 +277,12 @@ Cc: linux-gpio@vger.kernel.org
|
||||||
+ if (type & IRQ_TYPE_EDGE_RISING)
|
+ if (type & IRQ_TYPE_EDGE_RISING)
|
||||||
+ rg->rising |= mask;
|
+ rg->rising |= mask;
|
||||||
+ else
|
+ else
|
||||||
+ rg->rising &= mask;
|
+ rg->rising &= ~mask;
|
||||||
+
|
+
|
||||||
+ if (type & IRQ_TYPE_EDGE_FALLING)
|
+ if (type & IRQ_TYPE_EDGE_FALLING)
|
||||||
+ rg->falling |= mask;
|
+ rg->falling |= mask;
|
||||||
+ else
|
+ else
|
||||||
+ rg->falling &= mask;
|
+ rg->falling &= ~mask;
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return 0;
|
||||||
+}
|
+}
|
||||||
|
|
Loading…
Reference in New Issue