linux_dsm_epyc7002/drivers/gpu/drm/hisilicon/hibmc
Thomas Zimmermann c932c4f831 drm/hisilicon: 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.

The current behaviour of cleaning the pointer is kept in the calling code,
but should be removed if not required in a later patch.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Xinliang Liu <z.liuxinliang@hisilicon.com>
Signed-off-by: Xinliang Liu <z.liuxinliang@hisilicon.com>
2018-09-26 11:42:12 +08:00
..
hibmc_drm_de.c drm: Nuke drm_atomic_helper_plane_set_property 2017-08-08 14:45:16 +02:00
hibmc_drm_drv.c drm/hisilicon: Replace drm_dev_unref with drm_dev_put 2018-09-26 11:42:03 +08:00
hibmc_drm_drv.h gpu/drm/hisilicon: Convert drm_atomic_helper_suspend/resume() 2018-09-26 11:40:39 +08:00
hibmc_drm_fbdev.c drm/hisilicon: hibmc: Don't overwrite fb helper surface depth 2018-09-26 11:40:06 +08:00
hibmc_drm_regs.h drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver 2016-11-17 15:26:24 +08:00
hibmc_drm_vdac.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
hibmc_ttm.c drm/hisilicon: Replace ttm_bo_unref with ttm_bo_put 2018-09-26 11:42:12 +08:00
Kconfig drm: fix compilations issues introduced by "drm: allow to use mmuless SoC" 2017-01-09 11:30:30 +01:00
Makefile drm/hisilicon: fix include notation and remove -Iinclude/drm flag 2017-05-17 14:35:22 +02:00