Commit 2474ae29 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Ben Skeggs

drm/nouveau: sgdma: remove unused nouveau_sgdma_be::dev

nouveau_sgdma_be::dev is only set once during init and never used
anywhere, so remove it.
Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent ec0e5542
...@@ -9,7 +9,6 @@ struct nouveau_sgdma_be { ...@@ -9,7 +9,6 @@ struct nouveau_sgdma_be {
* nouve_bo.c works properly, otherwise have to move them here * nouve_bo.c works properly, otherwise have to move them here
*/ */
struct ttm_dma_tt ttm; struct ttm_dma_tt ttm;
struct drm_device *dev;
struct nouveau_mem *node; struct nouveau_mem *node;
}; };
...@@ -101,7 +100,6 @@ nouveau_sgdma_create_ttm(struct ttm_bo_device *bdev, ...@@ -101,7 +100,6 @@ nouveau_sgdma_create_ttm(struct ttm_bo_device *bdev,
if (!nvbe) if (!nvbe)
return NULL; return NULL;
nvbe->dev = drm->dev;
if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA)
nvbe->ttm.ttm.func = &nv04_sgdma_backend; nvbe->ttm.ttm.func = &nv04_sgdma_backend;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment