]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda3bc1906aeb8d8d95df7d38a93eefc0df5156b6
treeb861e46e290a5330a613252eb3cf6617a5012cd9
parent54e2a004ebf31ea7b196b5bb41f3bf1f3908e620
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
a5dcec475e5b0306610a05324120308a65f5d569 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