diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-02-19 16:22:50 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-21 02:11:49 +0100 |
commit | 53521d8c90d366191b6c134f88a8ebe83de60614 (patch) | |
tree | 2d4b8bed0db743927586389ab035aab816d22f36 /drivers/ssb/main.c | |
parent | ssb: Fix the GPIO API (diff) | |
download | linux-53521d8c90d366191b6c134f88a8ebe83de60614.tar.xz linux-53521d8c90d366191b6c134f88a8ebe83de60614.zip |
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>
Diffstat (limited to 'drivers/ssb/main.c')
-rw-r--r-- | drivers/ssb/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 9028ed5715a1..af07ab22708f 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c @@ -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); |