summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/include/mach/gpio-track.h
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-05-17 14:53:48 +0900
committerBen Dooks <ben-linux@fluff.org>2010-05-18 19:06:34 +0900
commit1635ca4aaf835794401da33079e50ce1d6bbb5d0 (patch)
treee8b6284f10729f9d827d77ad853c83ea1796f118 /arch/arm/mach-s3c2410/include/mach/gpio-track.h
parent7987bd7a7051c979f7b9b572898f92dbef6aaeb1 (diff)
ARM: S3C24XX: Remove macros mapping GPIO number to base
As part of the cleanup, remove the old macros mapping GPIO numbers to the base of the register now we have gpiolib to manage the GPIO mappings for us. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2410/include/mach/gpio-track.h')
-rw-r--r--arch/arm/mach-s3c2410/include/mach/gpio-track.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2410/include/mach/gpio-track.h b/arch/arm/mach-s3c2410/include/mach/gpio-track.h
index 6371eaa5fe4..d67819dde42 100644
--- a/arch/arm/mach-s3c2410/include/mach/gpio-track.h
+++ b/arch/arm/mach-s3c2410/include/mach/gpio-track.h
@@ -27,7 +27,7 @@ static inline struct s3c_gpio_chip *s3c_gpiolib_getchip(unsigned int pin)
return NULL;
chip = &s3c24xx_gpios[pin/32];
- return (S3C2410_GPIO_OFFSET(pin) < chip->chip.ngpio) ? chip : NULL;
+ return ((pin - chip->chip.base) < chip->chip.ngpio) ? chip : NULL;
}
#endif /* __ASM_ARCH_GPIO_CORE_H */