diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2018-10-16 04:04:08 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-05 14:20:52 -0500 |
commit | e55a5c9b5f5b80275a38293ac0fd38336dd2efdf (patch) | |
tree | 91c4dc21b9dcf4a2f49aae464ac481bed805513a /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |
parent | d76e393f4cef8151c0a2178b6abeacecb9da4875 (diff) |
drm/ttm: Rename ttm_bo_global_{init,release}() to ttm_bo_global_ref_{,}()
The functions ttm_bo_global_init() and ttm_bo_global_release() do not
receive an argument of type struct ttm_bo_global. Both take a struct
drm_global_reference that contains points to a struct ttm_bo_global_ref.
Renaming them reflects this.
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index a44fc12ae1f9..3a6802846698 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |||
@@ -125,8 +125,8 @@ static int amdgpu_ttm_global_init(struct amdgpu_device *adev) | |||
125 | global_ref = &adev->mman.bo_global_ref.ref; | 125 | global_ref = &adev->mman.bo_global_ref.ref; |
126 | global_ref->global_type = DRM_GLOBAL_TTM_BO; | 126 | global_ref->global_type = DRM_GLOBAL_TTM_BO; |
127 | global_ref->size = sizeof(struct ttm_bo_global); | 127 | global_ref->size = sizeof(struct ttm_bo_global); |
128 | global_ref->init = &ttm_bo_global_init; | 128 | global_ref->init = &ttm_bo_global_ref_init; |
129 | global_ref->release = &ttm_bo_global_release; | 129 | global_ref->release = &ttm_bo_global_ref_release; |
130 | r = drm_global_item_ref(global_ref); | 130 | r = drm_global_item_ref(global_ref); |
131 | if (r) { | 131 | if (r) { |
132 | DRM_ERROR("Failed setting up TTM BO subsystem.\n"); | 132 | DRM_ERROR("Failed setting up TTM BO subsystem.\n"); |