drm/vram: switch vram helper to &drm_gem_object_funcs.mmap()
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Oct 2019 11:52:01 +0000 (13:52 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Oct 2019 11:59:16 +0000 (13:59 +0200)
commit5a8b7cf93c92bb7925ee03ddb31675af6a6a805e
tree2248c214fa5376c5a6e2013a7a9433f5d75af7a3
parent231927d939f073ffee24a5e7acb5b5621ba8b7c8
drm/vram: switch vram helper to &drm_gem_object_funcs.mmap()

Wire up the new drm_gem_ttm_mmap() helper function,
use generic drm_gem_mmap for &fops.mmap and
delete dead drm_vram_mm_file_operations_mmap().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20191016115203.20095-10-kraxel@redhat.com
drivers/gpu/drm/drm_gem_vram_helper.c
include/drm/drm_gem_vram_helper.h