From 5128542814215b26ed342e3a4ac2217606fe5e76 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Sun, 31 Oct 2004 15:16:44 +0000 Subject: Allow drivers to override reclaim_buffers in an OS-independent way by passing drm_device_t* as first parameter, like in the BSD version. --- linux/i810_dma.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'linux/i810_dma.c') diff --git a/linux/i810_dma.c b/linux/i810_dma.c index 5d2165c6..621be7a9 100644 --- a/linux/i810_dma.c +++ b/linux/i810_dma.c @@ -996,10 +996,8 @@ static int i810_flush_queue(drm_device_t *dev) } /* Must be called with the lock held */ -void i810_reclaim_buffers(struct file *filp) +void i810_reclaim_buffers(drm_device_t *dev, struct file *filp) { - drm_file_t *priv = filp->private_data; - drm_device_t *dev = priv->dev; drm_device_dma_t *dma = dev->dma; int i; @@ -1395,7 +1393,7 @@ static void i810_driver_pretakedown(drm_device_t *dev) static void i810_driver_release(drm_device_t *dev, struct file *filp) { - i810_reclaim_buffers(filp); + i810_reclaim_buffers(dev, filp); } static int i810_driver_dma_quiescent(drm_device_t *dev) -- cgit v1.2.3