projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5853e74
)
[ARM] 4851/1: ns9xxx: fix size of gpiores
author
Uwe Kleine-König
<Uwe.Kleine-Koenig@digi.com>
Thu, 6 Mar 2008 15:21:42 +0000
(16:21 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sat, 8 Mar 2008 15:53:45 +0000
(15:53 +0000)
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>
arch/arm/mach-ns9xxx/gpio.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-ns9xxx/gpio.c
b/arch/arm/mach-ns9xxx/gpio.c
index b2230213b983deacd3db7e0a251fc1d27b9f2e69..5286e9fc1d307bac62f1341dd6c4e728a83be33a 100644
(file)
--- 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)
{