drm/ttm: Provide ttm_bo_global_{init/release}() for struct ttm_bo_global
commit105f20706fb5df8b763e3d9a9bfbfa73386391c3
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 16 Oct 2018 08:04:09 +0000 (16 10:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:20:52 +0000 (5 14:20 -0500)
tree68211ef5e7cc5aa0bab8ef5a83858e682057d275
parente55a5c9b5f5b80275a38293ac0fd38336dd2efdf
drm/ttm: Provide ttm_bo_global_{init/release}() for struct ttm_bo_global

So far, struct ttm_bo_global_ref was the only way of initializing a struct
ttm_bo_global. Providing separate initializer and release functions for
struct ttm_bo_global gives drivers the option of implementing their own
init and release callbacks for drm_global_references of type
DRM_GLOBAL_TTM_BO.

The original functions for initializing and releasing via struct
ttm_bo_global_ref are wrappers around the new interfaces.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_driver.h