OpenCloudOS-Kernel/drivers/gpu/drm/ast
Thomas Zimmermann 376bc02da2 drm/ast: Replace ttm_bo_unref with ttm_bo_put
The function ttm_bo_put releases a reference to a TTM buffer object. The
function's name is more aligned to the Linux kernel convention of naming
ref-counting function _get and _put.

A call to ttm_bo_unref takes the address of the TTM BO object's pointer and
clears the pointer's value to NULL. This is not necessary in most cases and
sometimes even worked around by the calling code. A call to ttm_bo_put only
releases the reference without clearing the pointer.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-28 11:42:41 -05:00
..
Kconfig drm: fix compilations issues introduced by "drm: allow to use mmuless SoC" 2017-01-09 11:30:30 +01:00
Makefile drm/ast: fix include notation and remove -Iinclude/drm flag 2017-05-16 17:17:51 +02:00
ast_dp501.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ast_dram_tables.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ast_drv.c drm/ast: Remove existing framebuffers before loading driver 2018-11-19 09:50:02 +10:00
ast_drv.h drm/ttm: initialize globals during device init (v2) 2018-11-05 14:21:21 -05:00
ast_fb.c drm-misc-next for 5.1: 2019-01-10 05:58:52 +10:00
ast_main.c drm/ast: Replace ttm_bo_unref with ttm_bo_put 2019-01-28 11:42:41 -05:00
ast_mode.c drm/ast: fixed reading monitor EDID not stable issue 2018-11-29 09:55:55 +10:00
ast_post.c drm/ast: Call open_key before enable_mmio in POST code 2017-02-28 13:25:32 +10:00
ast_tables.h drm/ast: Fixed 1280x800 Display Issue 2018-03-23 09:50:54 +10:00
ast_ttm.c drm/ttm: initialize globals during device init (v2) 2018-11-05 14:21:21 -05:00