drm_vm: drop explicit VM_IO setting
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 23 Jun 2013 20:26:50 +0000 (06:26 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 23 Jun 2013 20:26:50 +0000 (06:26 +1000)
io_remap_pfn_range already sets this internally.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_vm.c

index 1575694ccacacfa041656422f0d26e45f458eefd..feb20035b2c44d08ac217c0b48d40967f70f6463 100644 (file)
@@ -613,7 +613,6 @@ int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma)
        case _DRM_FRAME_BUFFER:
        case _DRM_REGISTERS:
                offset = drm_core_get_reg_ofs(dev);
-               vma->vm_flags |= VM_IO; /* not in core dump */
                vma->vm_page_prot = drm_io_prot(map, vma);
                if (io_remap_pfn_range(vma, vma->vm_start,
                                       (map->offset + offset) >> PAGE_SHIFT,