drm: remove drm_flush
authorDave Airlie <airlied@starflyer.(none)>
Fri, 11 Nov 2005 08:40:52 +0000 (19:40 +1100)
committerDave Airlie <airlied@linux.ie>
Fri, 11 Nov 2005 08:40:52 +0000 (19:40 +1100)
drm_flush is no longer needed remove.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drmP.h
drivers/char/drm/drm_fops.c
drivers/char/drm/i810_dma.c
drivers/char/drm/i830_dma.c

index 3593f60..6c35879 100644 (file)
@@ -783,7 +783,6 @@ extern int drm_lastclose(drm_device_t *dev);
                                /* Device support (drm_fops.h) */
 extern int drm_open(struct inode *inode, struct file *filp);
 extern int drm_stub_open(struct inode *inode, struct file *filp);
-extern int drm_flush(struct file *filp);
 extern int drm_fasync(int fd, struct file *filp, int on);
 extern int drm_release(struct inode *inode, struct file *filp);
 
index 28f0130..b73543c 100644 (file)
@@ -423,20 +423,6 @@ static int drm_open_helper(struct inode *inode, struct file *filp,
        return ret;
 }
 
-/** No-op. */
-int drm_flush(struct file *filp)
-{
-       drm_file_t *priv = filp->private_data;
-       drm_device_t *dev = priv->head->dev;
-
-       DRM_DEBUG("pid = %d, device = 0x%lx, open_count = %d\n",
-                 current->pid, (long)old_encode_dev(priv->head->device),
-                 dev->open_count);
-       return 0;
-}
-
-EXPORT_SYMBOL(drm_flush);
-
 /** No-op. */
 int drm_fasync(int fd, struct file *filp, int on)
 {
index c3178a8..a7df614 100644 (file)
@@ -114,7 +114,6 @@ static int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
 
 static struct file_operations i810_buffer_fops = {
        .open = drm_open,
-       .flush = drm_flush,
        .release = drm_release,
        .ioctl = drm_ioctl,
        .mmap = i810_mmap_buffers,
index 01dfdb9..f1e048f 100644 (file)
@@ -116,7 +116,6 @@ static int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
 
 static struct file_operations i830_buffer_fops = {
        .open = drm_open,
-       .flush = drm_flush,
        .release = drm_release,
        .ioctl = drm_ioctl,
        .mmap = i830_mmap_buffers,