projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10101d
)
Blackfin arch: fix incorrect limit check for bf54x check_gpio
author
Mike Frysinger
<vapier.adi@gmail.com>
Tue, 28 Oct 2008 07:42:13 +0000
(15:42 +0800)
committer
Bryan Wu
<cooloney@kernel.org>
Tue, 28 Oct 2008 07:42:13 +0000
(15:42 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/bfin_gpio.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/kernel/bfin_gpio.c
b/arch/blackfin/kernel/bfin_gpio.c
index 6e08f425bb44076fa39443e23ab75d1db429afa1..5c0800adb4ddc428658f50c6f8aa29fd839ede65 100644
(file)
--- a/
arch/blackfin/kernel/bfin_gpio.c
+++ b/
arch/blackfin/kernel/bfin_gpio.c
@@
-218,7
+218,7
@@
inline int check_gpio(unsigned gpio)
if (gpio == GPIO_PB15 || gpio == GPIO_PC14 || gpio == GPIO_PC15
|| gpio == GPIO_PH14 || gpio == GPIO_PH15
|| gpio == GPIO_PJ14 || gpio == GPIO_PJ15
- || gpio > MAX_BLACKFIN_GPIOS)
+ || gpio >
=
MAX_BLACKFIN_GPIOS)
return -EINVAL;
return 0;
}