]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
DMA-API: net: nxp/lpc_eth: use dma_coerce_mask_and_coherent()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 27 Jun 2013 13:03:13 +0000 (14:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Oct 2013 09:22:48 +0000 (10:22 +0100)
commit4651e1e342f0ee6117f4b3e6156739e9b1c6a74f
tree3af60260ed9367d36d5655b56cc4a6d740155a87
parentb930c7e9c7ebdc7470e0385d5595b28b5b5cce14
DMA-API: net: nxp/lpc_eth: use dma_coerce_mask_and_coherent()

The code sequence:
pldat->pdev->dev.coherent_dma_mask = 0xFFFFFFFF;
pldat->pdev->dev.dma_mask = &pldat->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/nxp/lpc_eth.c