projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d41b17
)
fix a bug in the GPIO code
author
Gabor Juhos
<juhosg@openwrt.org>
Mon, 7 Apr 2008 14:10:37 +0000
(14:10 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Mon, 7 Apr 2008 14:10:37 +0000
(14:10 +0000)
SVN-Revision: 10759
target/linux/adm5120/files/arch/mips/adm5120/gpio.c
patch
|
blob
|
history
diff --git
a/target/linux/adm5120/files/arch/mips/adm5120/gpio.c
b/target/linux/adm5120/files/arch/mips/adm5120/gpio.c
index bf252670d4c82ffbef1a048f48762f5fd393148e..02fd01bcbcda1775569b6bcb17f2c7df1dd2e98a 100644
(file)
--- a/
target/linux/adm5120/files/arch/mips/adm5120/gpio.c
+++ b/
target/linux/adm5120/files/arch/mips/adm5120/gpio.c
@@
-70,10
+70,10
@@
static u32 gpio_conf2;
static inline int gpio_is_invalid(unsigned gpio)
{
if ((gpio > ADM5120_GPIO_MAX) ||
- (adm5120_gpio_map[gpio].flags & GPIO_FLAG_VALID) == 0)
;
- return
0
;
+ (adm5120_gpio_map[gpio].flags & GPIO_FLAG_VALID) == 0)
+ return
1
;
- return
1
;
+ return
0
;
}
static inline int gpio_is_used(unsigned gpio)