summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorLoic Pallardy <loic.pallardy@st.com>2019-01-10 14:49:07 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2019-02-21 06:34:18 +0100
commit80137b4072853f47fce029b20ec335439e9448ae (patch)
tree4cf29091db59fa8de2bcd04bb3b9101f06e3203b /drivers/remoteproc
parentremoteproc: fix rproc_da_to_va in case of unallocated carveout (diff)
downloadlinux-80137b4072853f47fce029b20ec335439e9448ae.tar.xz
linux-80137b4072853f47fce029b20ec335439e9448ae.zip
remoteproc: fix rproc_alloc_carveout() bad variable cast
As dma member of struct rproc_mem_entry is dma_addr_t, no need to cast in u32. Fixes: d7c51706d095 ("remoteproc: add alloc ops in rproc_mem_entry struct") Signed-off-by: Loic Pallardy <loic.pallardy@st.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/remoteproc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index dfa2f6ecaf90..91d7788b1210 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -819,7 +819,7 @@ static int rproc_alloc_carveout(struct rproc *rproc,
mem->da = (u32)dma;
}
- mem->dma = (u32)dma;
+ mem->dma = dma;
mem->va = va;
return 0;