aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43legacy/dma.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-06-26 18:49:11 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-09-21 16:02:23 -0400
commitde71f988003a2e0b3d5b5a3519e9426053b5dda5 (patch)
tree4b95c7ae4436f6153b0c6df53b8086722ed9b390 /drivers/net/wireless/b43legacy/dma.c
parente1390a2adc72c907fb7a779d0111efa37b033dec (diff)
DMA-API: net: b43legacy: replace dma_set_mask()+dma_set_coherent_mask() with new helper
Replace the following sequence: dma_set_mask(dev, mask); dma_set_coherent_mask(dev, mask); with a call to the new helper dma_set_mask_and_coherent(). Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/net/wireless/b43legacy/dma.c')
-rw-r--r--drivers/net/wireless/b43legacy/dma.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/b43legacy/dma.c b/drivers/net/wireless/b43legacy/dma.c
index 42eb26c99e11..b2ed1795130b 100644
--- a/drivers/net/wireless/b43legacy/dma.c
+++ b/drivers/net/wireless/b43legacy/dma.c
@@ -806,12 +806,9 @@ static int b43legacy_dma_set_mask(struct b43legacy_wldev *dev, u64 mask)
806 /* Try to set the DMA mask. If it fails, try falling back to a 806 /* Try to set the DMA mask. If it fails, try falling back to a
807 * lower mask, as we can always also support a lower one. */ 807 * lower mask, as we can always also support a lower one. */
808 while (1) { 808 while (1) {
809 err = dma_set_mask(dev->dev->dma_dev, mask); 809 err = dma_set_mask_and_coherent(dev->dev->dma_dev, mask);
810 if (!err) { 810 if (!err)
811 err = dma_set_coherent_mask(dev->dev->dma_dev, mask); 811 break;
812 if (!err)
813 break;
814 }
815 if (mask == DMA_BIT_MASK(64)) { 812 if (mask == DMA_BIT_MASK(64)) {
816 mask = DMA_BIT_MASK(32); 813 mask = DMA_BIT_MASK(32);
817 fallback = true; 814 fallback = true;