linux_dsm_epyc7002/drivers/gpu/drm/mgag200
Thomas Zimmermann 706b7761ab drm/mgag200: 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: 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:43:31 -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/mgag200: fix include notation and remove -Iinclude/drm flag 2017-05-17 14:35:31 +02:00
mgag200_cursor.c drm/mgag200: switch to drm_*_get(), drm_*_put() helpers 2017-08-11 11:56:03 -04:00
mgag200_drv.c drm/mgag200: use simpler remove_conflicting_pci_framebuffers() 2018-09-03 18:17:32 +02:00
mgag200_drv.h drm/ttm: initialize globals during device init (v2) 2018-11-05 14:21:21 -05:00
mgag200_fb.c drm/mgag200: switch to drm_*_get(), drm_*_put() helpers 2017-08-11 11:56:03 -04:00
mgag200_i2c.c drm/mgag200: Added support for the new device G200eH3 2017-01-23 11:57:08 +10:00
mgag200_main.c drm/mgag200: Replace ttm_bo_unref with ttm_bo_put 2019-01-28 11:43:31 -05:00
mgag200_mode.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
mgag200_reg.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mgag200_ttm.c drm/ttm: initialize globals during device init (v2) 2018-11-05 14:21:21 -05:00