Revert "remoteproc: stm32: Fix incorrect type in assignment for va"

This reverts commit 0dd5b63ae2 which is
commit 32381bbccba4c21145c571701f8f7fb1d9b3a92e upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Ic7512dc88e8c32c3adc7fec73f4cc0c89fd58c80
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2024-05-20 10:45:16 +00:00
parent f21d21f05e
commit b05356dd8a

View File

@ -118,7 +118,7 @@ static int stm32_rproc_mem_alloc(struct rproc *rproc,
void *va;
dev_dbg(dev, "map memory: %pad+%zx\n", &mem->dma, mem->len);
va = (__force void *)ioremap_wc(mem->dma, mem->len);
va = ioremap_wc(mem->dma, mem->len);
if (IS_ERR_OR_NULL(va)) {
dev_err(dev, "Unable to map memory region: %pad+0x%zx\n",
&mem->dma, mem->len);
@ -135,7 +135,7 @@ static int stm32_rproc_mem_release(struct rproc *rproc,
struct rproc_mem_entry *mem)
{
dev_dbg(rproc->dev.parent, "unmap memory: %pa\n", &mem->dma);
iounmap((__force __iomem void *)mem->va);
iounmap(mem->va);
return 0;
}