From: Peter De Schrijver (NVIDIA) Date: Wed, 21 Dec 2011 14:14:52 +0000 (+0100) Subject: ARM: 7244/1: mach-shmobile: Use CONFIG_ARCH_NR_GPIO X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3dea19e826da3dd43b3dc308aca299c0b7263c6b;p=deliverable%2Flinux.git ARM: 7244/1: mach-shmobile: Use CONFIG_ARCH_NR_GPIO Add default value for CONFIG_ARCH_NR_GPIO to Kconfig and remove the definition in gpio.h. Signed-off-by: Peter De Schrijver Signed-off-by: Russell King --- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 003b7d00dd60..dbd2cb19924a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1567,7 +1567,7 @@ config LOCAL_TIMERS config ARCH_NR_GPIO int - default 1024 if ARCH_TEGRA + default 1024 if ARCH_SHMOBILE || ARCH_TEGRA default 0 help Maximum number of GPIOs in the system. diff --git a/arch/arm/mach-shmobile/include/mach/gpio.h b/arch/arm/mach-shmobile/include/mach/gpio.h index 7bf0890e16ba..de795b42232a 100644 --- a/arch/arm/mach-shmobile/include/mach/gpio.h +++ b/arch/arm/mach-shmobile/include/mach/gpio.h @@ -12,8 +12,6 @@ #include #include - -#define ARCH_NR_GPIOS 1024 #include #ifdef CONFIG_GPIOLIB