drm/ttm: drop ttm->dummy_read_page
Only used by the AGP backend and there it can be easily accessed using ttm->bdev->glob. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
3231a7696e
commit
231cdafc75
@@ -326,8 +326,7 @@ static struct ttm_backend_func virtio_gpu_backend_func = {
|
||||
|
||||
static struct ttm_tt *virtio_gpu_ttm_tt_create(struct ttm_bo_device *bdev,
|
||||
unsigned long size,
|
||||
uint32_t page_flags,
|
||||
struct page *dummy_read_page)
|
||||
uint32_t page_flags)
|
||||
{
|
||||
struct virtio_gpu_device *vgdev;
|
||||
struct virtio_gpu_ttm_tt *gtt;
|
||||
@@ -338,8 +337,7 @@ static struct ttm_tt *virtio_gpu_ttm_tt_create(struct ttm_bo_device *bdev,
|
||||
return NULL;
|
||||
gtt->ttm.ttm.func = &virtio_gpu_backend_func;
|
||||
gtt->vgdev = vgdev;
|
||||
if (ttm_dma_tt_init(>t->ttm, bdev, size, page_flags,
|
||||
dummy_read_page)) {
|
||||
if (ttm_dma_tt_init(>t->ttm, bdev, size, page_flags)) {
|
||||
kfree(gtt);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user