mirror of https://gitee.com/openkylin/linux.git
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: d7c51706d0
("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>
This commit is contained in:
parent
74457c40f9
commit
80137b4072
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue