aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-07-16 12:27:55 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-19 15:43:40 -0400
commit36677874100edb610b22720f90859ee0f41330e2 (patch)
tree8024cb7abe8770aeff0738ed4ddb3ae59935b79b /drivers
parent02c5172c314308eb85f80899cc3aef41bc31bbad (diff)
b43: use agent R/W ops for BCMA_IOCTL
BCMA_IOCTL is register in agent (AKA wrapper) core, we need to use special R/W ops for it. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/b43/main.c4
-rw-r--r--drivers/net/wireless/b43/phy_n.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 8bcda5084dec..8a2e059de235 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -2814,12 +2814,12 @@ void b43_mac_phy_clock_set(struct b43_wldev *dev, bool on)
2814 switch (dev->dev->bus_type) { 2814 switch (dev->dev->bus_type) {
2815#ifdef CONFIG_B43_BCMA 2815#ifdef CONFIG_B43_BCMA
2816 case B43_BUS_BCMA: 2816 case B43_BUS_BCMA:
2817 tmp = bcma_read32(dev->dev->bdev, BCMA_IOCTL); 2817 tmp = bcma_aread32(dev->dev->bdev, BCMA_IOCTL);
2818 if (on) 2818 if (on)
2819 tmp |= B43_BCMA_IOCTL_MACPHYCLKEN; 2819 tmp |= B43_BCMA_IOCTL_MACPHYCLKEN;
2820 else 2820 else
2821 tmp &= ~B43_BCMA_IOCTL_MACPHYCLKEN; 2821 tmp &= ~B43_BCMA_IOCTL_MACPHYCLKEN;
2822 bcma_write32(dev->dev->bdev, BCMA_IOCTL, tmp); 2822 bcma_awrite32(dev->dev->bdev, BCMA_IOCTL, tmp);
2823 break; 2823 break;
2824#endif 2824#endif
2825#ifdef CONFIG_B43_SSB 2825#ifdef CONFIG_B43_SSB
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c
index 95c28f584ed9..1ae1e84cb4d1 100644
--- a/drivers/net/wireless/b43/phy_n.c
+++ b/drivers/net/wireless/b43/phy_n.c
@@ -611,12 +611,12 @@ static void b43_nphy_bmac_clock_fgc(struct b43_wldev *dev, bool force)
611 switch (dev->dev->bus_type) { 611 switch (dev->dev->bus_type) {
612#ifdef CONFIG_B43_BCMA 612#ifdef CONFIG_B43_BCMA
613 case B43_BUS_BCMA: 613 case B43_BUS_BCMA:
614 tmp = bcma_read32(dev->dev->bdev, BCMA_IOCTL); 614 tmp = bcma_aread32(dev->dev->bdev, BCMA_IOCTL);
615 if (force) 615 if (force)
616 tmp |= BCMA_IOCTL_FGC; 616 tmp |= BCMA_IOCTL_FGC;
617 else 617 else
618 tmp &= ~BCMA_IOCTL_FGC; 618 tmp &= ~BCMA_IOCTL_FGC;
619 bcma_write32(dev->dev->bdev, BCMA_IOCTL, tmp); 619 bcma_awrite32(dev->dev->bdev, BCMA_IOCTL, tmp);
620 break; 620 break;
621#endif 621#endif
622#ifdef CONFIG_B43_SSB 622#ifdef CONFIG_B43_SSB