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/qxl/qxl_ttm.c | |
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/qxl/qxl_ttm.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index dc31f3fea33c..7aae0a96f043 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -75,12 +75,6 @@ int qxl_ttm_io_mem_reserve(struct ttm_bo_device *bdev, { struct qxl_device *qdev = qxl_get_qdev(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 */ |