drm/cma-helper: Make default object functions the default
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Nov 2020 13:16:32 +0000 (14:16 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 9 Nov 2020 08:23:03 +0000 (09:23 +0100)
commita39855076c859b7f6c58ed4da8f195a2a6cd3c7b
tree0d1d4a690f8865d75eb4beaee2ad7b0851bff8d1
parent222ec45f4c69dfa8cd02c72928147ac06dffffa2
drm/cma-helper: Make default object functions the default

As GEM object functions are now mandatory, DRM drivers based on CMA
helpers either set them in their implementation of gem_create_object,
or use the default via drm_gem_cma_create_object_default_funcs().

Simplify this by setting the default CMA object functions for all
objects that don't have any functions of their own. Follows the pattern
of similar code in SHMEM and VRAM helpers. The function
drm_gem_cma_create_object_default_funcs() is redundant and therefore
being removed.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201106131632.6796-1-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_cma_helper.c
drivers/gpu/drm/pl111/pl111_drv.c
include/drm/drm_gem_cma_helper.h