summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+cubox@arm.linux.org.uk>2013-08-28 15:51:31 +0100
committerRussell King <rmk@arm.linux.org.uk>2013-10-29 19:21:12 +0000
commitca58888be51eec3e96184ae4364fd1a593c12861 (patch)
treebb44138009978ccf0b98ce4663395f11e6d2e557
parent4a1e818c35f61f0f18eaf3d2884011f3913db596 (diff)
Remove unused 'phys' and 'last_phys' members from Xv driver
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--src/armada_drm_xv.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/armada_drm_xv.c b/src/armada_drm_xv.c
index f864f3a..94257f6 100644
--- a/src/armada_drm_xv.c
+++ b/src/armada_drm_xv.c
@@ -74,11 +74,9 @@ struct drm_xv {
unsigned bo_idx;
struct {
struct drm_armada_bo *bo;
- phys_t phys;
uint32_t fb_id;
} bufs[NR_BUFS];
- phys_t last_phys;
struct drm_armada_bo *last_bo;
int (*get_fb)(ScrnInfoPtr, struct drm_xv *, unsigned char *,
@@ -393,7 +391,6 @@ static void armada_drm_bufs_free(struct drm_xv *drmxv)
drm_armada_bo_put(drmxv->bufs[i].bo);
drmxv->bufs[i].bo = NULL;
}
- drmxv->bufs[i].phys = INVALID_PHYS;
}
if (drmxv->plane_fb_id) {
@@ -405,8 +402,6 @@ static void armada_drm_bufs_free(struct drm_xv *drmxv)
drm_armada_bo_put(drmxv->last_bo);
drmxv->last_bo = NULL;
}
-
- drmxv->last_phys = INVALID_PHYS;
}
static Bool
@@ -1008,9 +1003,6 @@ Bool armada_drm_XvInit(ScrnInfoPtr pScrn)
drmxv->drm = drm;
drmxv->autopaint_colorkey = TRUE;
- for (i = 0; i < ARRAY_SIZE(drmxv->bufs); i++)
- drmxv->bufs[i].phys = INVALID_PHYS;
-
/* Get the plane resources and the overlay planes */
res = drmModeGetPlaneResources(drm->fd);
if (!res)