]> git.baikalelectronics.ru Git - kernel.git/commit
drm/xlnx: Initialize DRM driver instance with CMA helper macro
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 23 Sep 2020 10:21:58 +0000 (12:21 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 25 Sep 2020 07:21:43 +0000 (09:21 +0200)
commit6fe235922891db2975e42fc782910d0f67f893d0
tree2925c9d45379e24c70107456552cfbf01e319d92
parent50f3373a6378cbd5ef4cb39b66fac0cefce5c90f
drm/xlnx: Initialize DRM driver instance with CMA helper macro

The xlnx driver uses CMA helpers with default callback functions.
Initialize the driver structure with the rsp CMA helper macro. The
driver is being converted to use GEM object functions as part of
this change.

Two callbacks, .dumb_destroy and .gem_prime_import, were initialized
to their default implementations, so they are just kept empty now.

v2:
* initialize with DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE (Laurent)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200923102159.24084-22-tzimmermann@suse.de
drivers/gpu/drm/xlnx/zynqmp_dpsub.c