]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/char/drm/i830_dma.c
drm: misc cleanup
[linux-beck.git] / drivers / char / drm / i830_dma.c
index 98adccf8e4341f748adf70255c15fb6cf91f93ff..dc7733035864d9e2e058e0b86766bec7d1e11643 100644 (file)
@@ -92,16 +92,7 @@ static int i830_freelist_put(drm_device_t *dev, drm_buf_t *buf)
        return 0;
 }
 
-static struct file_operations i830_buffer_fops = {
-       .open    = drm_open,
-       .flush   = drm_flush,
-       .release = drm_release,
-       .ioctl   = drm_ioctl,
-       .mmap    = i830_mmap_buffers,
-       .fasync  = drm_fasync,
-};
-
-int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
+static int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
 {
        drm_file_t          *priv         = filp->private_data;
        drm_device_t        *dev;
@@ -128,6 +119,15 @@ int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
        return 0;
 }
 
+static struct file_operations i830_buffer_fops = {
+       .open    = drm_open,
+       .flush   = drm_flush,
+       .release = drm_release,
+       .ioctl   = drm_ioctl,
+       .mmap    = i830_mmap_buffers,
+       .fasync  = drm_fasync,
+};
+
 static int i830_map_buffer(drm_buf_t *buf, struct file *filp)
 {
        drm_file_t        *priv   = filp->private_data;