Skip to content

Commit

Permalink
remoteproc: fix for "dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag"
Browse files Browse the repository at this point in the history
The commit 82c5de0 ("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>
  • Loading branch information
Stephen Rothwell authored and Bjorn Andersson committed Mar 13, 2019
1 parent 28d7d5c commit d664ce7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/remoteproc/remoteproc_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ int rproc_add_virtio_dev(struct rproc_vdev *rvdev, int id)
/* Associate vdev buffer memory pool to vdev subdev */
ret = dma_declare_coherent_memory(dev, pa,
mem->da,
mem->len,
DMA_MEMORY_EXCLUSIVE);
mem->len);
if (ret < 0) {
dev_err(dev, "Failed to associate buffer\n");
goto out;
Expand Down

0 comments on commit d664ce7

Please sign in to comment.