diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2010-03-02 22:48:54 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-03-19 14:29:31 -0400 |
commit | c0fcb8dba829421fe20652a376a2bedaf168238f (patch) | |
tree | f1c6afccd8c5bd09177415a8874dbd941f58e286 /arch/arm/plat-nomadik/gpio.c | |
parent | 3a5e854e09b77c49c8030c7dfd3a3f506571a89a (diff) |
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Fix the incorrect spinlock usage which leads to these compiler warnings:
arch/arm/plat-nomadik/gpio.c:60: warning: passing argument 1 of `spinlock_check' from incompatible pointer type
arch/arm/plat-nomadik/gpio.c:69: warning: passing argument 1 of `spin_unlock_irqrestore' from incompatible pointer type
Acked-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-nomadik/gpio.c')
-rw-r--r-- | arch/arm/plat-nomadik/gpio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c index 9a09b2791e03..a9ee9889a833 100644 --- a/arch/arm/plat-nomadik/gpio.c +++ b/arch/arm/plat-nomadik/gpio.c | |||
@@ -36,7 +36,7 @@ struct nmk_gpio_chip { | |||
36 | struct gpio_chip chip; | 36 | struct gpio_chip chip; |
37 | void __iomem *addr; | 37 | void __iomem *addr; |
38 | unsigned int parent_irq; | 38 | unsigned int parent_irq; |
39 | spinlock_t *lock; | 39 | spinlock_t lock; |
40 | /* Keep track of configured edges */ | 40 | /* Keep track of configured edges */ |
41 | u32 edge_rising; | 41 | u32 edge_rising; |
42 | u32 edge_falling; | 42 | u32 edge_falling; |
@@ -321,6 +321,7 @@ static int __init nmk_gpio_probe(struct amba_device *dev, struct amba_id *id) | |||
321 | nmk_chip->addr = io_p2v(dev->res.start); | 321 | nmk_chip->addr = io_p2v(dev->res.start); |
322 | nmk_chip->chip = nmk_gpio_template; | 322 | nmk_chip->chip = nmk_gpio_template; |
323 | nmk_chip->parent_irq = pdata->parent_irq; | 323 | nmk_chip->parent_irq = pdata->parent_irq; |
324 | spin_lock_init(&nmk_chip->lock); | ||
324 | 325 | ||
325 | chip = &nmk_chip->chip; | 326 | chip = &nmk_chip->chip; |
326 | chip->base = pdata->first_gpio; | 327 | chip->base = pdata->first_gpio; |