mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags
DMA_MEMORY_IO was never used in the tree, so remove it. That means there is no need for the DMA_MEMORY_MAP flag either now, so remove it as well and change dma_declare_coherent_memory to return a normal errno value. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Marek Szyprowski <[email protected]>
This commit is contained in:
parent
b32dbc1e0b
commit
2436bdcda5
11 changed files with 52 additions and 111 deletions
|
|
@ -1708,11 +1708,10 @@ static int sh_mobile_ceu_probe(struct platform_device *pdev)
|
|||
err = dma_declare_coherent_memory(&pdev->dev, res->start,
|
||||
res->start,
|
||||
resource_size(res),
|
||||
DMA_MEMORY_MAP |
|
||||
DMA_MEMORY_EXCLUSIVE);
|
||||
if (!err) {
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "Unable to declare CEU memory.\n");
|
||||
return -ENXIO;
|
||||
return err;
|
||||
}
|
||||
|
||||
pcdev->video_limit = resource_size(res);
|
||||
|
|
|
|||
Loading…
Reference in a new issue