diff options
author | Peter De Schrijver (NVIDIA) <pdeschrijver@nvidia.com> | 2011-12-21 10:48:45 +0100 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-02-18 10:24:31 -0800 |
commit | e6ad666c858262bf37ea9e3fac247c7b8db1c886 (patch) | |
tree | cb23491057cba8ff159ed99f5c1f1f9e4207470d /arch/arm/include | |
parent | 64b804c0e7d41e6ff1626e50cda73bfc90b04b89 (diff) |
ARM: 7240/1: Make ARCH_NR_GPIO a Kconfig variable
Change ARCH_NR_GPIO into a Kconfig variable as suggested by Russel King.
This makes ARCH_NR_GPIO single zImage friendly. The default value for
tegra is defined as well.
Upstream v3.3 commit 44986ab056076e9dc9fb9f8b4729afef7fa72616
Change-Id: Ia1ae996fc5209b22eb7ea942d90e86cfae56318e
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/83219
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/gpio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index 166a7a3e2840..7f95555319aa 100644 --- a/arch/arm/include/asm/gpio.h +++ b/arch/arm/include/asm/gpio.h @@ -1,6 +1,10 @@ #ifndef _ARCH_ARM_GPIO_H #define _ARCH_ARM_GPIO_H +#if CONFIG_ARCH_NR_GPIO > 0 +#define ARCH_NR_GPIO CONFIG_ARCH_NR_GPIO +#endif + /* not all ARM platforms necessarily support this API ... */ #include <mach/gpio.h> |