drm/prime: support dmabuf mmap

Not sure if its 'prime' or 'PRIME'

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
This commit is contained in:
Yusuf Khan 2022-08-23 18:45:56 -05:00
parent 88636e701d
commit 6e9e28959b

View File

@ -826,7 +826,9 @@ static struct drm_driver nv_drm_driver = {
.gem_prime_get_sg_table = nv_drm_gem_prime_get_sg_table,
.gem_prime_vmap = nv_drm_gem_prime_vmap,
.gem_prime_vunmap = nv_drm_gem_prime_vunmap,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
.gem_prime_mmap = drm_gem_prime_mmap,
#endif
.gem_vm_ops = &nv_drm_gem_vma_ops,
#endif