mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-03 08:04:58 +01:00
uio_pruss: UIO_MEM_DMA_COHERENT conversion
Conversion of this driver to use UIO_MEM_DMA_COHERENT for dma_alloc_coherent memory instead of UIO_MEM_PHYS. Signed-off-by: Chris Leech <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
bfe78793b2
commit
7722151e46
1 file changed
+4
-2
@@ -191,9 +191,11 @@ static int pruss_probe(struct platform_device *pdev)
|
||||
p->mem[1].size = sram_pool_sz;
|
||||
p->mem[1].memtype = UIO_MEM_PHYS;
|
||||
|
||||
p->mem[2].addr = gdev->ddr_paddr;
|
||||
p->mem[2].addr = (phys_addr_t) gdev->ddr_vaddr;
|
||||
p->mem[2].dma_addr = gdev->ddr_paddr;
|
||||
p->mem[2].size = extram_pool_sz;
|
||||
p->mem[2].memtype = UIO_MEM_PHYS;
|
||||
p->mem[2].memtype = UIO_MEM_DMA_COHERENT;
|
||||
p->mem[2].dma_device = dev;
|
||||
|
||||
p->name = devm_kasprintf(dev, GFP_KERNEL, "pruss_evt%d", cnt);
|
||||
p->version = DRV_VERSION;
|
||||
|
||||
Reference in new issue
Block a user