drm/arc: Use GEM CMA object functions
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 5 Jun 2020 07:32:08 +0000 (09:32 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Jun 2020 07:01:56 +0000 (09:01 +0200)
commit3fb9e537972022cea3f4f3e7e077b3f3127acca2
tree412877dda155e70be303ee3b392e2c963c0d20bd
parent654bf12bad116f434c17b7669895ffaab96e16c2
drm/arc: Use GEM CMA object functions

Create GEM objects with drm_gem_cma_create_object_default_funcs(), which
allocates the object and sets CMA's default object functions. Corresponding
callbacks in struct drm_driver are cleared. No functional changes are made.

Driver and object-function instances use the same callback functions, with
the exception of vunmap. The implementation of vunmap is empty and left out
in CMA's default object functions.

v3:
* convert to DRIVER_OPS macro in a separate patch

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200605073247.4057-5-tzimmermann@suse.de
drivers/gpu/drm/arc/arcpgu_drv.c