diff options
author | 2008-10-28 15:42:13 +0800 | |
---|---|---|
committer | 2008-10-28 15:42:13 +0800 | |
commit | 72edff8dd45fdee6e1a2bc431baefd8a5372f7cb (patch) | |
tree | 3a064d8a39f3e5f11e52617c10b1005ec7bdb668 /arch/blackfin | |
parent | Blackfin arch: fix bug - Cpufreq assumes clocks in kHz and not Hz. (diff) | |
download | linux-72edff8dd45fdee6e1a2bc431baefd8a5372f7cb.tar.gz linux-72edff8dd45fdee6e1a2bc431baefd8a5372f7cb.tar.bz2 linux-72edff8dd45fdee6e1a2bc431baefd8a5372f7cb.zip |
Blackfin arch: fix incorrect limit check for bf54x check_gpio
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index 6e08f425bb44..5c0800adb4dd 100644 --- 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; } |