PCI: rockchip: dw_ep: Remove useless vm_flags definition

Define vm_flags by remap_pfn_range.

Change-Id: I6f1b7ca4e1653fab2eab0f4139c6b9648c903e10
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2025-04-21 14:35:36 +08:00
committed by Tao Huang
parent b176f5d83b
commit 032401c7c9

View File

@@ -1325,9 +1325,6 @@ static int pcie_ep_mmap(struct file *file, struct vm_area_struct *vma)
return -EINVAL;
}
vma->vm_flags |= VM_IO;
vma->vm_flags |= (VM_DONTEXPAND | VM_DONTDUMP);
if (rockchip->cur_mmap_res == PCIE_EP_MMAP_RESOURCE_BAR2)
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
else