projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d166370
)
gpio: Add missing spin_lock_init in gpio-ml-ioh driver
author
Axel Lin
<
[email protected]
>
Wed, 1 Feb 2012 02:50:05 +0000
(10:50 +0800)
committer
Grant Likely
<
[email protected]
>
Thu, 2 Feb 2012 04:59:37 +0000
(21:59 -0700)
This bug was introduced by commit
54be5663
"gpio-ml-ioh: Support interrupt function" which adds a spinlock to struct
ioh_gpio but never init the spinlock.
Signed-off-by: Axel Lin <
[email protected]
>
Signed-off-by: Grant Likely <
[email protected]
>
drivers/gpio/gpio-ml-ioh.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-ml-ioh.c
b/drivers/gpio/gpio-ml-ioh.c
index 03d6dd5dcb77c0092c5297acb34bd4da59a5f81a..f0febe5b8221384c390711208c191a56cc2ee4f8 100644
(file)
--- a/
drivers/gpio/gpio-ml-ioh.c
+++ b/
drivers/gpio/gpio-ml-ioh.c
@@
-448,6
+448,7
@@
static int __devinit ioh_gpio_probe(struct pci_dev *pdev,
chip->reg = chip->base;
chip->ch = i;
mutex_init(&chip->lock);
+ spin_lock_init(&chip->spinlock);
ioh_gpio_setup(chip, num_ports[i]);
ret = gpiochip_add(&chip->gpio);
if (ret) {