ssb: Make the GPIO API reentrancy safe
This fixes the GPIO API to be reentrancy safe. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
c2bcbe65fc
commit
53521d8c90
@@ -569,6 +569,9 @@ static int ssb_bus_register(struct ssb_bus *bus,
|
||||
|
||||
spin_lock_init(&bus->bar_lock);
|
||||
INIT_LIST_HEAD(&bus->list);
|
||||
#ifdef CONFIG_SSB_EMBEDDED
|
||||
spin_lock_init(&bus->gpio_lock);
|
||||
#endif
|
||||
|
||||
/* Powerup the bus */
|
||||
err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 1);
|
||||
|
Reference in New Issue
Block a user