diff options
author | Dave Airlie <airlied@redhat.com> | 2020-08-11 17:46:57 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-08-24 17:00:48 +1000 |
commit | 098754fe3ce79af2d5772c0356ba5d52e67eb64a (patch) | |
tree | db3456663ba41af96888a3a33bdb37ee8c7d8eed /drivers/gpu/drm/radeon | |
parent | f688a345f0d7a6df4dd2aeca8e4f3c05e123a0ee (diff) |
drm/ttm: init mem->bus in common code.
The drivers all do the same thing here.
Reviewed-by: Christian König <christian.koenig@amd.com> for both.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200811074658.58309-1-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ttm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 31a06ecf450f..8ca2253f6fbf 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -363,12 +363,6 @@ static int radeon_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_reso { struct radeon_device *rdev = radeon_get_rdev(bdev); - 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 */ |