diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-11-11 19:40:52 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-11-11 19:40:52 +1100 |
commit | 8f5f39f77f5a6053ae287d4673028e7a69335f5e (patch) | |
tree | 4090314e38601f9e40f69256b356334c6430e2d2 | |
parent | 7052cff984ba575926bb7d2ae5454cce531a97e1 (diff) | |
download | op-kernel-dev-8f5f39f77f5a6053ae287d4673028e7a69335f5e.zip op-kernel-dev-8f5f39f77f5a6053ae287d4673028e7a69335f5e.tar.gz |
drm: remove drm_flush
drm_flush is no longer needed remove.
Signed-off-by: Dave Airlie <airlied@linux.ie>
-rw-r--r-- | drivers/char/drm/drmP.h | 1 | ||||
-rw-r--r-- | drivers/char/drm/drm_fops.c | 14 | ||||
-rw-r--r-- | drivers/char/drm/i810_dma.c | 1 | ||||
-rw-r--r-- | drivers/char/drm/i830_dma.c | 1 |
4 files changed, 0 insertions, 17 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 3593f60..6c35879 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h @@ -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); diff --git a/drivers/char/drm/drm_fops.c b/drivers/char/drm/drm_fops.c index 28f0130..b73543c 100644 --- a/drivers/char/drm/drm_fops.c +++ b/drivers/char/drm/drm_fops.c @@ -424,20 +424,6 @@ static int drm_open_helper(struct inode *inode, struct file *filp, } /** 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) { drm_file_t *priv = filp->private_data; diff --git a/drivers/char/drm/i810_dma.c b/drivers/char/drm/i810_dma.c index c3178a8..a7df614 100644 --- a/drivers/char/drm/i810_dma.c +++ b/drivers/char/drm/i810_dma.c @@ -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, diff --git a/drivers/char/drm/i830_dma.c b/drivers/char/drm/i830_dma.c index 01dfdb9..f1e048f 100644 --- a/drivers/char/drm/i830_dma.c +++ b/drivers/char/drm/i830_dma.c @@ -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, |