remoteproc: fix for "dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag"
The commit 82c5de0ab8
("dma-mapping: remove the DMA_MEMORY_EXCLUSIVE
flag") removed the "flags" parameter for dma_declare_coherent_memory().
Remove the parameter from the call in rproc_add_virtio_dev().
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
[bjorn: Extended commit message]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
28d7d5c66d
commit
d664ce75ae
|
@ -365,8 +365,7 @@ int rproc_add_virtio_dev(struct rproc_vdev *rvdev, int id)
|
||||||
/* Associate vdev buffer memory pool to vdev subdev */
|
/* Associate vdev buffer memory pool to vdev subdev */
|
||||||
ret = dma_declare_coherent_memory(dev, pa,
|
ret = dma_declare_coherent_memory(dev, pa,
|
||||||
mem->da,
|
mem->da,
|
||||||
mem->len,
|
mem->len);
|
||||||
DMA_MEMORY_EXCLUSIVE);
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
dev_err(dev, "Failed to associate buffer\n");
|
dev_err(dev, "Failed to associate buffer\n");
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in New Issue