drm/qxl/ttm: use new init path for manager
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:55:50 +0000 (12:55 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:31:36 +0000 (12:31 +1000)
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-18-airlied@gmail.com
drivers/gpu/drm/qxl/qxl_ttm.c

index 10109a3..b116064 100644 (file)
@@ -222,11 +222,10 @@ static int qxl_ttm_init_mem_type(struct qxl_device *qdev,
 {
        struct ttm_mem_type_manager *man = &qdev->mman.bdev.man[type];
 
-       man->func = &ttm_bo_manager_func;
        man->available_caching = TTM_PL_MASK_CACHING;
        man->default_caching = TTM_PL_FLAG_CACHED;
 
-       return ttm_bo_init_mm(&qdev->mman.bdev, type, size);
+       return ttm_range_man_init(&qdev->mman.bdev, man, size);
 }
 
 int qxl_ttm_init(struct qxl_device *qdev)