ARM: s3c: fix check of index into s3c_gpios[]
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 18 Sep 2009 19:44:17 +0000 (12:44 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Sep 2009 11:14:06 +0000 (12:14 +0100)
commit7da18afa423f167e7ef3c9728e584d8bf05bd55a
treee7bba9211d04eadad4caa06af4b789e5631c2dd8
parent3318c4bddba34be4881cfcf8cf3d56e41678b716
ARM: s3c: fix check of index into s3c_gpios[]

The check of the s3c_gpios[] index had an off-by-one.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Ben Dooks <ben-linux@fluff.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-s3c/gpio.c