diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-03-21 11:19:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-25 16:43:41 -0400 |
commit | 0a64baea483ce7d698f9761388e86284cf5753e3 (patch) | |
tree | 44ea11f7f608515e454a2ca85806e2573f15aea1 /drivers/net/wireless/b43 | |
parent | 3e6998574fde0ab7a3329c9229394dd80462ead2 (diff) |
b43: use bcma_chipco_gpio_control()
With this patch the same registers are written, but this access is now
protected by a lock.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index c4d0cc582555..ae4eeb3bfa54 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -2780,9 +2780,7 @@ static int b43_gpio_init(struct b43_wldev *dev) | |||
2780 | switch (dev->dev->bus_type) { | 2780 | switch (dev->dev->bus_type) { |
2781 | #ifdef CONFIG_B43_BCMA | 2781 | #ifdef CONFIG_B43_BCMA |
2782 | case B43_BUS_BCMA: | 2782 | case B43_BUS_BCMA: |
2783 | bcma_cc_write32(&dev->dev->bdev->bus->drv_cc, BCMA_CC_GPIOCTL, | 2783 | bcma_chipco_gpio_control(&dev->dev->bdev->bus->drv_cc, mask, set); |
2784 | (bcma_cc_read32(&dev->dev->bdev->bus->drv_cc, | ||
2785 | BCMA_CC_GPIOCTL) & ~mask) | set); | ||
2786 | break; | 2784 | break; |
2787 | #endif | 2785 | #endif |
2788 | #ifdef CONFIG_B43_SSB | 2786 | #ifdef CONFIG_B43_SSB |
@@ -2807,8 +2805,7 @@ static void b43_gpio_cleanup(struct b43_wldev *dev) | |||
2807 | switch (dev->dev->bus_type) { | 2805 | switch (dev->dev->bus_type) { |
2808 | #ifdef CONFIG_B43_BCMA | 2806 | #ifdef CONFIG_B43_BCMA |
2809 | case B43_BUS_BCMA: | 2807 | case B43_BUS_BCMA: |
2810 | bcma_cc_write32(&dev->dev->bdev->bus->drv_cc, BCMA_CC_GPIOCTL, | 2808 | bcma_chipco_gpio_control(&dev->dev->bdev->bus->drv_cc, ~0, 0); |
2811 | 0); | ||
2812 | break; | 2809 | break; |
2813 | #endif | 2810 | #endif |
2814 | #ifdef CONFIG_B43_SSB | 2811 | #ifdef CONFIG_B43_SSB |