From: Junwei Zhang Date: Fri, 11 May 2018 02:54:40 +0000 (+0800) Subject: drm/ttm: remove priority hard code when initializing ttm bo X-Git-Tag: v4.18-rc1~128^2~12^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=967c650d4973dd87355c8540a18e6fa58844e547;p=users%2Fjedix%2Flinux-maple.git drm/ttm: remove priority hard code when initializing ttm bo Then priority could be set before initialization. By default, it requires to kzalloc ttm bo. In fact, we always do so. Signed-off-by: Junwei Zhang Reviewed-by: David Zhou Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 98e06f8bf23b..cba50151de18 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -1175,7 +1175,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev, reservation_object_init(&bo->ttm_resv); atomic_inc(&bo->bdev->glob->bo_count); drm_vma_node_reset(&bo->vma_node); - bo->priority = 0; /* * For ttm_bo_type_device buffers, allocate