aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2412
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c2412')
-rw-r--r--arch/arm/mach-s3c2412/gpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c2412/gpio.c b/arch/arm/mach-s3c2412/gpio.c
index f7afece7fc38..71c579349dd5 100644
--- a/arch/arm/mach-s3c2412/gpio.c
+++ b/arch/arm/mach-s3c2412/gpio.c
@@ -33,14 +33,14 @@ int s3c2412_gpio_set_sleepcfg(unsigned int pin, unsigned int state)
33 33
34 offs *= 2; 34 offs *= 2;
35 35
36 if (pin < S3C2410_GPIO_BANKB) 36 if (pin < S3C2410_GPB(0))
37 return -EINVAL; 37 return -EINVAL;
38 38
39 if (pin >= S3C2410_GPIO_BANKF && 39 if (pin >= S3C2410_GPF(0) &&
40 pin <= S3C2410_GPIO_BANKG) 40 pin <= S3C2410_GPG(16))
41 return -EINVAL; 41 return -EINVAL;
42 42
43 if (pin > (S3C2410_GPIO_BANKH + 32)) 43 if (pin > S3C2410_GPH(16))
44 return -EINVAL; 44 return -EINVAL;
45 45
46 local_irq_save(flags); 46 local_irq_save(flags);