diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-02-22 06:14:45 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-03-13 01:00:42 +0100 |
commit | d664ce75ae1c7c1e0e3fd8fa71f7ca779906a9be (patch) | |
tree | ef29fe07628f972f731aa78eb508f6b938b14bb1 /drivers/remoteproc/remoteproc_virtio.c | |
parent | remoteproc: fix rproc_check_carveout_da() returned error and comments (diff) | |
download | linux-d664ce75ae1c7c1e0e3fd8fa71f7ca779906a9be.tar.xz linux-d664ce75ae1c7c1e0e3fd8fa71f7ca779906a9be.zip |
remoteproc: fix for "dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag"
The commit 82c5de0ab8db ("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>
Diffstat (limited to '')
-rw-r--r-- | drivers/remoteproc/remoteproc_virtio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index b7a987d1b962..e3f67afe8171 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c @@ -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; |