mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user