drm/ttm: use a static ttm_bo_global instance
authorChristian König <christian.koenig@amd.com>
Fri, 19 Oct 2018 13:06:06 +0000 (15:06 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:20 +0000 (14:21 -0500)
commit62b53b37e4b1500d4eb4624a44ad861cf8d3cd18
tree0193d438cbb744c1c423415145ca8d695cdf34c6
parent56b3d20413587fab6a790cfc8bc075ca94bc8ed9
drm/ttm: use a static ttm_bo_global instance

As the name says we only need one global instance of ttm_bo_global.

Just use a single exported instance which is save to initialize multiple times.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_driver.h