Skip to content

Commit

Permalink
remoteproc: fix rproc_alloc_carveout() bad variable cast
Browse files Browse the repository at this point in the history
As dma member of struct rproc_mem_entry is dma_addr_t, no
need to cast in u32.

Fixes: d7c5170 ("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>
  • Loading branch information
Loic Pallardy authored and Bjorn Andersson committed Feb 21, 2019
1 parent 74457c4 commit 80137b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/remoteproc/remoteproc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80137b4

Please sign in to comment.