]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ARM: 7241/1: mach-ux500 Use CONFIG_ARCH_NR_GPIO
authorPeter De Schrijver (NVIDIA) <pdeschrijver@nvidia.com>
Wed, 21 Dec 2011 09:50:42 +0000 (10:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 23 Dec 2011 22:54:51 +0000 (22:54 +0000)
Add default value for CONFIG_ARCH_NR_GPIO to Kconfig and remove the
definition in gpio.h. We can't remove gpio.h yet as asm/gpio.h still
includes it.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/mach-ux500/include/mach/gpio.h

index dbd2cb19924a34cca065bcb0c4d3cf2d0765ca07..4e53bf678f700998f6b20645ba9fcd638426b13f 100644 (file)
@@ -1568,6 +1568,7 @@ config LOCAL_TIMERS
 config ARCH_NR_GPIO
        int
        default 1024 if ARCH_SHMOBILE || ARCH_TEGRA
+       default 350 if ARCH_U8500
        default 0
        help
          Maximum number of GPIOs in the system.
index 7389df911b1ac8639e6e1dc3c5975d9ed5c112dc..c01ef66537f34a344f4fcf41ea6a9f67740ffb4c 100644 (file)
@@ -1,10 +1,5 @@
 #ifndef __ASM_ARCH_GPIO_H
 #define __ASM_ARCH_GPIO_H
 
-/*
- * 288 (#267 is the highest one actually hooked up) onchip GPIOs, plus enough
- * room for a couple of GPIO expanders.
- */
-#define ARCH_NR_GPIOS  350
 
 #endif /* __ASM_ARCH_GPIO_H */