aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-08-11 07:46:57 +0000
committerDave Airlie <[email protected]>2020-08-24 07:00:48 +0000
commit098754fe3ce79af2d5772c0356ba5d52e67eb64a (patch)
treedb3456663ba41af96888a3a33bdb37ee8c7d8eed /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parentdrm/brige/megachips: Add checking if ge_b850v3_lvds_init() is working correctly (diff)
downloadkernel-098754fe3ce79af2d5772c0356ba5d52e67eb64a.tar.gz
kernel-098754fe3ce79af2d5772c0356ba5d52e67eb64a.zip
drm/ttm: init mem->bus in common code.
The drivers all do the same thing here. Reviewed-by: Christian König <[email protected]> for both. Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 95f144788b14..924c19ce3f5a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -752,12 +752,6 @@ static int amdgpu_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_reso
struct amdgpu_device *adev = amdgpu_ttm_adev(bdev);
struct drm_mm_node *mm_node = mem->mm_node;
- mem->bus.addr = NULL;
- mem->bus.offset = 0;
- mem->bus.size = mem->num_pages << PAGE_SHIFT;
- mem->bus.base = 0;
- mem->bus.is_iomem = false;
-
switch (mem->mem_type) {
case TTM_PL_SYSTEM:
/* system memory */