diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-05-17 01:13:16 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-18 06:06:32 -0400 |
commit | 2c8fcfbf735e2d3b139e4247eb3e73edf64bb23f (patch) | |
tree | 253eb5464e32a159cac657deb341347d652354c3 /arch/arm/mach-s3c2412 | |
parent | a0026418d3d99b68dbd6c91f277d6f764fe41956 (diff) |
ARM: S3C24XX: Start cleanup of GPIO numbering
Start cleaning up the numbering of GPIO banks by removing the old
bank start definitions currently being used by some of the header
files.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2412')
-rw-r--r-- | arch/arm/mach-s3c2412/gpio.c | 8 |
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); |