OSDN Git Service

drm/atmel-hlcdc: Use GEM CMA object functions
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 5 Jun 2020 07:32:12 +0000 (09:32 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Jun 2020 07:02:27 +0000 (09:02 +0200)
commitdc502e21a2c57e78fe0385130981dd19c98290fc
treeb0ffb7f0aa481bbff412db44f4eb1866f3f498e3
parentd9ec1d2c4acfbe8ecac8355a723e09f518b5c70f
drm/atmel-hlcdc: 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: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200605073247.4057-9-tzimmermann@suse.de
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c