]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/sun4i: Use DRM_GEM_CMA_VMAP_DRIVER_OPS for GEM operations
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 18 Apr 2019 13:05:09 +0000 (15:05 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 18 Apr 2019 15:56:47 +0000 (17:56 +0200)
commitad408c766cef7ebaa9b74f828db50e7642388581
tree6a37f2bac65d7ac22edd88ad60a2d17b7b3cfa64
parentaa20236784ab3d0372591d6eca692956bca4ebfb
drm/sun4i: Use DRM_GEM_CMA_VMAP_DRIVER_OPS for GEM operations

Our driver makes a typical use of CMA, with GEM object allocated as
GEM CMA objects. Use DRM_GEM_CMA_VMAP_DRIVER_OPS to describe the ops
instead of duplicating them.

Because DRM_GEM_CMA_VMAP_DRIVER_OPS implements a gem_create_object op
which sets per-object funcs (drm_cma_gem_default_funcs), we can also
get rid of free_object_unlocked and gem_vm_ops, which are superseded
by the object funcs.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190418130509.3569-1-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_drv.c