diff options
author | Thomas Zimmermann <contact@tzimmermann.org> | 2018-06-21 16:21:36 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-10 22:18:22 +0300 |
commit | 8129fdad387ae3cf6373d74a6afb5372bf773cbd (patch) | |
tree | 7da87822bfffaae1d08de05284e1cf1878d9cc58 /drivers/gpu/drm/ttm/ttm_bo_util.c | |
parent | 89c815ef07a1db0ac2cc09d06cb2d5c3d86d6322 (diff) | |
download | linux-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.c | 3 |
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: |