summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ttm/ttm_bo_util.c
diff options
context:
space:
mode:
authorThomas Zimmermann <contact@tzimmermann.org>2018-06-21 16:21:36 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-07-10 22:18:22 +0300
commit8129fdad387ae3cf6373d74a6afb5372bf773cbd (patch)
tree7da87822bfffaae1d08de05284e1cf1878d9cc58 /drivers/gpu/drm/ttm/ttm_bo_util.c
parent89c815ef07a1db0ac2cc09d06cb2d5c3d86d6322 (diff)
downloadlinux-8129fdad387ae3cf6373d74a6afb5372bf773cbd.tar.xz
drm/ttm: Replace ttm_bo_reference() with ttm_bo_get()
Signed-off-by: Thomas Zimmermann <contact@tzimmermann.org> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_bo_util.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
index f2c167702eef..897c799832f6 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -492,8 +492,9 @@ static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo,
if (!fbo)
return -ENOMEM;
+ ttm_bo_get(bo);
fbo->base = *bo;
- fbo->bo = ttm_bo_reference(bo);
+ fbo->bo = bo;
/**
* Fix up members that we shouldn't copy directly: