diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-06-26 18:49:11 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-09-21 16:02:22 -0400 |
commit | e1390a2adc72c907fb7a779d0111efa37b033dec (patch) | |
tree | 3bb2c3d75cccc455d3adcc1eb75a57bc5bc61729 /drivers/net | |
parent | 9663dedafa302bb7fd511f9ae75d9ce33865477e (diff) |
DMA-API: net: b43: 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')
-rw-r--r-- | drivers/net/wireless/b43/dma.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/b43/dma.c b/drivers/net/wireless/b43/dma.c index c51d2dc489e4..1d7982afc0ad 100644 --- a/drivers/net/wireless/b43/dma.c +++ b/drivers/net/wireless/b43/dma.c | |||
@@ -1065,12 +1065,9 @@ static int b43_dma_set_mask(struct b43_wldev *dev, u64 mask) | |||
1065 | /* Try to set the DMA mask. If it fails, try falling back to a | 1065 | /* Try to set the DMA mask. If it fails, try falling back to a |
1066 | * lower mask, as we can always also support a lower one. */ | 1066 | * lower mask, as we can always also support a lower one. */ |
1067 | while (1) { | 1067 | while (1) { |
1068 | err = dma_set_mask(dev->dev->dma_dev, mask); | 1068 | err = dma_set_mask_and_coherent(dev->dev->dma_dev, mask); |
1069 | if (!err) { | 1069 | if (!err) |
1070 | err = dma_set_coherent_mask(dev->dev->dma_dev, mask); | 1070 | break; |
1071 | if (!err) | ||
1072 | break; | ||
1073 | } | ||
1074 | if (mask == DMA_BIT_MASK(64)) { | 1071 | if (mask == DMA_BIT_MASK(64)) { |
1075 | mask = DMA_BIT_MASK(32); | 1072 | mask = DMA_BIT_MASK(32); |
1076 | fallback = true; | 1073 | fallback = true; |