Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b91c4a1 authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Dave Airlie
Browse files

drm/ttm: remove ttm_buffer_object->buffer_start



All drivers set it to 0 and nothing uses it.

Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ef8cf3a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -356,7 +356,7 @@ int ast_bo_create(struct drm_device *dev, int size, int align,

	ret = ttm_bo_init(&ast->ttm.bdev, &astbo->bo, size,
			  ttm_bo_type_device, &astbo->placement,
			  align >> PAGE_SHIFT, 0, false, NULL, acc_size,
			  align >> PAGE_SHIFT, false, NULL, acc_size,
			  NULL, ast_bo_ttm_destroy);
	if (ret)
		return ret;
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ int cirrus_bo_create(struct drm_device *dev, int size, int align,

	ret = ttm_bo_init(&cirrus->ttm.bdev, &cirrusbo->bo, size,
			  ttm_bo_type_device, &cirrusbo->placement,
			  align >> PAGE_SHIFT, 0, false, NULL, acc_size,
			  align >> PAGE_SHIFT, false, NULL, acc_size,
			  NULL, cirrus_bo_ttm_destroy);
	if (ret)
		return ret;
+1 −1
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ int mgag200_bo_create(struct drm_device *dev, int size, int align,

	ret = ttm_bo_init(&mdev->ttm.bdev, &mgabo->bo, size,
			  ttm_bo_type_device, &mgabo->placement,
			  align >> PAGE_SHIFT, 0, false, NULL, acc_size,
			  align >> PAGE_SHIFT, false, NULL, acc_size,
			  NULL, mgag200_bo_ttm_destroy);
	if (ret)
		return ret;
+1 −1
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ nouveau_bo_new(struct drm_device *dev, int size, int align,

	ret = ttm_bo_init(&drm->ttm.bdev, &nvbo->bo, size,
			  type, &nvbo->placement,
			  align >> PAGE_SHIFT, 0, false, NULL, acc_size, sg,
			  align >> PAGE_SHIFT, false, NULL, acc_size, sg,
			  nouveau_bo_del_ttm);
	if (ret) {
		/* ttm will call nouveau_bo_del_ttm if it fails.. */
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ int radeon_bo_create(struct radeon_device *rdev,
	/* Kernel allocation are uninterruptible */
	down_read(&rdev->pm.mclk_lock);
	r = ttm_bo_init(&rdev->mman.bdev, &bo->tbo, size, type,
			&bo->placement, page_align, 0, !kernel, NULL,
			&bo->placement, page_align, !kernel, NULL,
			acc_size, sg, &radeon_ttm_bo_destroy);
	up_read(&rdev->pm.mclk_lock);
	if (unlikely(r != 0)) {
Loading