diff options
author | Felix Kuehling <fxkuehl@gmx.de> | 2004-10-31 15:16:44 +0000 |
---|---|---|
committer | Felix Kuehling <fxkuehl@gmx.de> | 2004-10-31 15:16:44 +0000 |
commit | 5128542814215b26ed342e3a4ac2217606fe5e76 (patch) | |
tree | 28c7727811940e5285c41928b112ca059dcac67c /linux-core/drm_dma.c | |
parent | 8264e2c8aa6b2811bca0e45c50ac3328d14bfbf7 (diff) |
Allow drivers to override reclaim_buffers in an OS-independent way by
passing drm_device_t* as first parameter, like in the BSD version.
Diffstat (limited to 'linux-core/drm_dma.c')
-rw-r--r-- | linux-core/drm_dma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linux-core/drm_dma.c b/linux-core/drm_dma.c index cf7f404d..e7d9e826 100644 --- a/linux-core/drm_dma.c +++ b/linux-core/drm_dma.c @@ -154,10 +154,8 @@ void drm_free_buffer(drm_device_t * dev, drm_buf_t * buf) * * Frees each buffer associated with \p filp not already on the hardware. */ -void drm_core_reclaim_buffers(struct file *filp) +void drm_core_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; |