summaryrefslogtreecommitdiff
path: root/linux-core/i830_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/i830_dma.c')
-rw-r--r--linux-core/i830_dma.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c
index a753ffd8..c2a003ee 100644
--- a/linux-core/i830_dma.c
+++ b/linux-core/i830_dma.c
@@ -1252,10 +1252,8 @@ static int i830_flush_queue(drm_device_t * dev)
}
/* Must be called with the lock held */
-void i830_reclaim_buffers(struct file *filp)
+void i830_reclaim_buffers(drm_device_t *dev, struct file *filp)
{
- drm_file_t *priv = filp->private_data;
- drm_device_t *dev = priv->head->dev;
drm_device_dma_t *dma = dev->dma;
int i;
@@ -1556,7 +1554,7 @@ void i830_driver_pretakedown(drm_device_t * dev)
void i830_driver_release(drm_device_t * dev, struct file *filp)
{
- i830_reclaim_buffers(filp);
+ i830_reclaim_buffers(dev, filp);
}
int i830_driver_dma_quiescent(drm_device_t * dev)