Commit 4011f9f7 authored by Russell King's avatar Russell King

DMA-API: net: broadcom/b44: 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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 53567aa4
...@@ -2183,8 +2183,7 @@ static int b44_init_one(struct ssb_device *sdev, ...@@ -2183,8 +2183,7 @@ static int b44_init_one(struct ssb_device *sdev,
goto err_out_free_dev; goto err_out_free_dev;
} }
if (dma_set_mask(sdev->dma_dev, DMA_BIT_MASK(30)) || if (dma_set_mask_and_coherent(sdev->dma_dev, DMA_BIT_MASK(30))) {
dma_set_coherent_mask(sdev->dma_dev, DMA_BIT_MASK(30))) {
dev_err(sdev->dev, dev_err(sdev->dev,
"Required 30BIT DMA mask unsupported by the system\n"); "Required 30BIT DMA mask unsupported by the system\n");
goto err_out_powerdown; goto err_out_powerdown;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment