summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorUwe Kleine-König <Uwe.Kleine-Koenig@digi.com>2008-03-06 16:21:42 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-03-08 15:53:45 +0000
commitac5bbf21bf38b3f5eaa8cb1e17f7513dc354afda (patch)
tree9357a5c54671895445f1d1ded7b3113c41e8a630 /arch/arm
parent5853e7427858a9ae493ea4999ef1069d2e2550d9 (diff)
downloadblackbird-op-linux-ac5bbf21bf38b3f5eaa8cb1e17f7513dc354afda.tar.gz
blackbird-op-linux-ac5bbf21bf38b3f5eaa8cb1e17f7513dc354afda.zip
[ARM] 4851/1: ns9xxx: fix size of gpiores
GPIO_MAX is the number of the last gpio, not the number of gpios. So the bitmap must provide GPIO_MAX + 1 bits. Signed-off-by: Uwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-ns9xxx/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-ns9xxx/gpio.c b/arch/arm/mach-ns9xxx/gpio.c
index b2230213b983..5286e9fc1d30 100644
--- a/arch/arm/mach-ns9xxx/gpio.c
+++ b/arch/arm/mach-ns9xxx/gpio.c
@@ -31,7 +31,7 @@
static spinlock_t gpio_lock = __SPIN_LOCK_UNLOCKED(gpio_lock);
/* only access gpiores with atomic ops */
-static DECLARE_BITMAP(gpiores, GPIO_MAX);
+static DECLARE_BITMAP(gpiores, GPIO_MAX + 1);
static inline int ns9xxx_valid_gpio(unsigned gpio)
{
OpenPOWER on IntegriCloud