]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
DMA-API: dma: dw_dmac.c: convert to use dma_coerce_mask_and_coherent()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 27 Jun 2013 12:37:21 +0000 (13:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Oct 2013 09:22:46 +0000 (10:22 +0100)
commit09250892f19e98b320f051e8eaf9cf158417f03c
tree95d6a7121bc8940fa1a53f7af181c94a09cd0c20
parent8274dd2de6143cda2a19baf82a3cca3a29ea1f1b
DMA-API: dma: dw_dmac.c: convert to use dma_coerce_mask_and_coherent()

This code sequence:
if (!pdev->dev.dma_mask) {
pdev->dev.dma_mask = &pdev->dev.coherent_dma_mask;
pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
}
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/dma/dw/platform.c