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 <pdeschrijver@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Peter De Schrijver (NVIDIA) 2011-12-21 15:14:52 +01:00 committed by Russell King
parent 44986ab056
commit 3dea19e826
2 changed files with 1 additions and 3 deletions

View file

@ -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.

View file

@ -12,8 +12,6 @@
#include <linux/kernel.h>
#include <linux/errno.h>
#define ARCH_NR_GPIOS 1024
#include <linux/sh_pfc.h>
#ifdef CONFIG_GPIOLIB