projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27810c5
)
gpio/mxc: fix a bug with gpio_get_value calling
author
Shawn Guo
<shawn.guo@linaro.org>
Sat, 11 Jun 2011 17:33:29 +0000
(
01:33
+0800)
committer
Grant Likely
<grant.likely@secretlab.ca>
Sun, 12 Jun 2011 03:01:41 +0000
(21:01 -0600)
When calling gpio_get_value, the gpio number other than bit offset
should be passed as the argument.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-mxc.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-mxc.c
b/drivers/gpio/gpio-mxc.c
index 950e53a636fabb2101712f0e6f9ec0cd5a775a00..2f6a81b8f12ee89d7ac4e5439497c21f112e5820 100644
(file)
--- a/
drivers/gpio/gpio-mxc.c
+++ b/
drivers/gpio/gpio-mxc.c
@@
-83,7
+83,7
@@
static int gpio_set_irq_type(struct irq_data *d, u32 type)
edge = GPIO_INT_FALL_EDGE;
break;
case IRQ_TYPE_EDGE_BOTH:
- val = gpio_get_value(gpio
& 31
);
+ val = gpio_get_value(gpio);
if (val) {
edge = GPIO_INT_LOW_LEV;
pr_debug("mxc: set GPIO %d to low trigger\n", gpio);