drm/qxl: stop using TTM to call driver internal functions
authorChristian König <christian.koenig@amd.com>
Fri, 27 Sep 2019 13:06:22 +0000 (15:06 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 25 Oct 2019 09:40:51 +0000 (11:40 +0200)
commit51ea742c87f3c6537a0df0f79f5da7bce4d8a40a
treeb861e46e290a5330a613252eb3cf6617a5012cd9
parentef38321897cff9466c9dac45d7c1db5f6f19a2cf
drm/qxl: stop using TTM to call driver internal functions

The ttm_mem_io_* functions were intended to be internal to TTM and
shouldn't have been used in a driver. They were exported in commit
afe6804c045fbd69a1b75c681107b5d6df9190de just for QXL.

Instead call the qxl_ttm_io_mem_reserve() function directly and
completely drop the free call since that is a dummy on QXL.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/333289/
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/qxl/qxl_object.c
drivers/gpu/drm/qxl/qxl_ttm.c