gpio: Add missing spin_lock_init in gpio-ml-ioh driver
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 <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
d166370ad8
commit
7e3a70fb7b
1 changed files with 1 additions and 0 deletions
|
@ -448,6 +448,7 @@ static int __devinit ioh_gpio_probe(struct pci_dev *pdev,
|
||||||
chip->reg = chip->base;
|
chip->reg = chip->base;
|
||||||
chip->ch = i;
|
chip->ch = i;
|
||||||
mutex_init(&chip->lock);
|
mutex_init(&chip->lock);
|
||||||
|
spin_lock_init(&chip->spinlock);
|
||||||
ioh_gpio_setup(chip, num_ports[i]);
|
ioh_gpio_setup(chip, num_ports[i]);
|
||||||
ret = gpiochip_add(&chip->gpio);
|
ret = gpiochip_add(&chip->gpio);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
Loading…
Reference in a new issue