summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/gpio.h
diff options
context:
space:
mode:
authorPeter De Schrijver (NVIDIA) <pdeschrijver@nvidia.com>2011-12-21 10:48:45 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-12-23 23:54:50 +0100
commit44986ab056076e9dc9fb9f8b4729afef7fa72616 (patch)
treeea8231c1bd85cb97daa89b3fe377a0a537ad24fa /arch/arm/include/asm/gpio.h
parentARM: 7243/1: sp804: modernize clock event registration (diff)
downloadlinux-44986ab056076e9dc9fb9f8b4729afef7fa72616.tar.xz
linux-44986ab056076e9dc9fb9f8b4729afef7fa72616.zip
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. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/gpio.h')
-rw-r--r--arch/arm/include/asm/gpio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index 11ad0bfbb0ad..7151753b0989 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>