summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2009-06-18 13:30:16 +0200
committerBen Dooks <ben-linux@fluff.org>2009-06-22 14:12:39 +0100
commit49fb88af23f3344ba53d6dbe34ac0b1426d81006 (patch)
tree304017735939a49242c325721763e058659a4d81 /arch/arm
parent0b495737f311cb8eb5e66404309ea16e4d7ded8a (diff)
downloadop-kernel-dev-49fb88af23f3344ba53d6dbe34ac0b1426d81006.zip
op-kernel-dev-49fb88af23f3344ba53d6dbe34ac0b1426d81006.tar.gz
[ARM] S3C: Fix gpio-config off-by-one bug
Fix gpio-config off-by-one bug. Without this patch, touching GPA0 pin on S3C64XX platform causes kernel oops. Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-s3c/gpio-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c/gpio-config.c b/arch/arm/plat-s3c/gpio-config.c
index 08044de..456969b 100644
--- a/arch/arm/plat-s3c/gpio-config.c
+++ b/arch/arm/plat-s3c/gpio-config.c
@@ -119,7 +119,7 @@ int s3c_gpio_setcfg_s3c64xx_4bit(struct s3c_gpio_chip *chip,
unsigned int shift = (off & 7) * 4;
u32 con;
- if (off < 8 && chip->chip.ngpio >= 8)
+ if (off < 8 && chip->chip.ngpio > 8)
reg -= 4;
if (s3c_gpio_is_cfg_special(cfg)) {
OpenPOWER on IntegriCloud