diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2018-07-31 08:16:58 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-31 16:58:21 -0500 |
commit | 269a8b6e342501fa221a398dd2730b7af7e94a5d (patch) | |
tree | 230bb67b34b921024516ec4a0de4ab402aa2f7b3 /drivers/gpu/drm | |
parent | fea872b279c8cd9433a3c9bb91949643cf645e07 (diff) | |
download | linux-stable-269a8b6e342501fa221a398dd2730b7af7e94a5d.tar.gz linux-stable-269a8b6e342501fa221a398dd2730b7af7e94a5d.tar.bz2 linux-stable-269a8b6e342501fa221a398dd2730b7af7e94a5d.zip |
drm/radeon: Replace ttm_bo_reference with ttm_bo_get
The function ttm_bo_get acquires a reference on a TTM buffer object. The
function's name is more aligned to the Linux kernel convention of naming
ref-counting function _get and _put.
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')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index edbb4cd519fd..1a9d4f547024 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -307,7 +307,7 @@ struct radeon_bo *radeon_bo_ref(struct radeon_bo *bo) if (bo == NULL) return NULL; - ttm_bo_reference(&bo->tbo); + ttm_bo_get(&bo->tbo); return bo; } |