aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/dma.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-07-06 09:45:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-08 11:11:20 -0400
commit6cbab0d9139246405b2449ffebecc8c48d927a6e (patch)
tree84f946062f450cb27377e46dbe0d361c1ff70164 /drivers/net/wireless/b43/dma.c
parent75396ae6d433b49482e377e6f8dbf1f42ad53f3a (diff)
b43: use switches for SSB specific code
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/dma.c')
-rw-r--r--drivers/net/wireless/b43/dma.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c
index 7a09a467339c..ce572aebeffd 100644
--- a/drivers/net/wireless/b43/dma.c
+++ b/drivers/net/wireless/b43/dma.c
@@ -1055,7 +1055,14 @@ int b43_dma_init(struct b43_wldev *dev)
1055 err = b43_dma_set_mask(dev, dmamask); 1055 err = b43_dma_set_mask(dev, dmamask);
1056 if (err) 1056 if (err)
1057 return err; 1057 return err;
1058 dma->translation = ssb_dma_translation(dev->sdev); 1058
1059 switch (dev->dev->bus_type) {
1060#ifdef CONFIG_B43_SSB
1061 case B43_BUS_SSB:
1062 dma->translation = ssb_dma_translation(dev->dev->sdev);
1063 break;
1064#endif
1065 }
1059 1066
1060 err = -ENOMEM; 1067 err = -ENOMEM;
1061 /* setup TX DMA channels. */ 1068 /* setup TX DMA channels. */