]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
DMA-API: net: octeon: use dma_coerce_mask_and_coherent()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 27 Jun 2013 12:57:32 +0000 (13:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Oct 2013 09:22:49 +0000 (10:22 +0100)
commit894f08e2717c660208164cea9679c30d421c8d57
tree84caf0d91d216fc092469ca8bf326b2fffa55623
parent4651e1e342f0ee6117f4b3e6156739e9b1c6a74f
DMA-API: net: octeon: use dma_coerce_mask_and_coherent()

The code sequence:
pdev->dev.coherent_dma_mask = DMA_BIT_MASK(64);
pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
bypasses the architectures check on the DMA mask.  It can be replaced
with dma_coerce_mask_and_coherent(), avoiding the direct initialization
of this mask.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/net/ethernet/octeon/octeon_mgmt.c