diff options
author | Linus Walleij | 2014-06-03 16:14:01 +0200 |
---|---|---|
committer | Linus Walleij | 2014-06-30 21:37:13 +0200 |
commit | ab275b132a79c7b08f10fa22fc3f204eb8e26d33 (patch) | |
tree | 251b82045f9cf0331f24ff39b9547c1cede39b23 /arch/arm/mach-s5pc100 | |
parent | Linux 3.16-rc3 (diff) | |
download | kernel-qcow2-linux-ab275b132a79c7b08f10fa22fc3f204eb8e26d33.tar.gz kernel-qcow2-linux-ab275b132a79c7b08f10fa22fc3f204eb8e26d33.tar.xz kernel-qcow2-linux-ab275b132a79c7b08f10fa22fc3f204eb8e26d33.zip |
ARM: s5p: cut the custom ARCH_NR_GPIOS definition
The number of GPIOs defined for the different S5P platforms using
the tricky #define macros are actually as follows:
S5P64x0: 180 GPIOs
S5PC100: 115 GPIOs
S5PV210: 252 GPIOs
The include file <asm-generic/gpio.h> will automatically bump us
to 256 GPIOs which is a nice default value that happens to encompass
all the S5P platform requirements under its roof.
Cut ARCH_NR_GPIOS and the custom spacing macro for extra GPIOs
that is not used anywhere in the kernel.
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-s5pc100')
-rw-r--r-- | arch/arm/mach-s5pc100/include/mach/gpio.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-s5pc100/include/mach/gpio.h b/arch/arm/mach-s5pc100/include/mach/gpio.h index 5e1a924b595f..291c57504bab 100644 --- a/arch/arm/mach-s5pc100/include/mach/gpio.h +++ b/arch/arm/mach-s5pc100/include/mach/gpio.h @@ -138,7 +138,4 @@ enum s5p_gpio_number { /* It used the end of the S5PC100 gpios */ #define S3C_GPIO_END S5PC100_GPIO_END -/* define the number of gpios we need to the one after the MP04() range */ -#define ARCH_NR_GPIOS (S5PC100_GPIO_END + 1) - #endif /* __ASM_ARCH_GPIO_H */ |