From 8743fe5fa3ccf7fd2f0ea7c3e37533180e8685de Mon Sep 17 00:00:00 2001 From: Ryan Herbst Date: Tue, 13 Feb 2024 23:54:39 -0800 Subject: [PATCH] Fix bad mapping call for new kernels --- common/driver/dma_common.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/common/driver/dma_common.c b/common/driver/dma_common.c index db390b2..4ebb174 100755 --- a/common/driver/dma_common.c +++ b/common/driver/dma_common.c @@ -906,17 +906,7 @@ int Dma_Mmap(struct file *filp, struct vm_area_struct *vma) { // Coherent buffer if ( dev->cfgMode & BUFF_COHERENT ) { - - // Avoid mapping warnings for x86 -#if defined(dma_mmap_coherent) && (! defined(CONFIG_X86)) ret = dma_mmap_coherent(dev->device,vma,buff->buffAddr,buff->buffHandle,dev->cfgSize); -#else - ret = remap_pfn_range(vma, vma->vm_start, - virt_to_phys((void *)buff->buffAddr) >> PAGE_SHIFT, - vsize, - vma->vm_page_prot); -#endif - } // Streaming buffer type or ARM ACP