diff options
author | Dave Airlie <airlied@redhat.com> | 2020-08-04 04:55:50 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-08-06 04:31:36 +0200 |
commit | 129ac4dcb52001c27d3573ecb361b8e6328c4135 (patch) | |
tree | 71f2df4fdf013cc4b95974c3639a1e7be25aeba5 /drivers/gpu/drm/qxl | |
parent | drm/radeon: use new ttm man init path (diff) | |
download | linux-129ac4dcb52001c27d3573ecb361b8e6328c4135.tar.xz linux-129ac4dcb52001c27d3573ecb361b8e6328c4135.zip |
drm/qxl/ttm: use new init path for manager
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
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index 10109a3a168a..b116064bd690 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -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) |