make drm fops const from kernel
authorDave Airlie <airlied@linux.ie>
Sun, 18 Mar 2007 21:36:01 +0000 (08:36 +1100)
committerDave Airlie <airlied@linux.ie>
Sun, 18 Mar 2007 21:36:01 +0000 (08:36 +1100)
linux-core/drm_drv.c
linux-core/i810_dma.c
linux-core/i830_dma.c

index ff9b29e..fba59b9 100644 (file)
@@ -442,7 +442,7 @@ void drm_exit(struct drm_driver *driver)
 EXPORT_SYMBOL(drm_exit);
 
 /** File operations structure */
-static struct file_operations drm_stub_fops = {
+static const struct file_operations drm_stub_fops = {
        .owner = THIS_MODULE,
        .open = drm_stub_open
 };
index 4146700..3f2dad3 100644 (file)
@@ -131,7 +131,7 @@ static int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
        return 0;
 }
 
-static struct file_operations i810_buffer_fops = {
+static const struct file_operations i810_buffer_fops = {
        .open = drm_open,
        .release = drm_release,
        .ioctl = drm_ioctl,
index 406a3ff..78bd623 100644 (file)
@@ -117,7 +117,7 @@ static int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
        return 0;
 }
 
-static struct file_operations i830_buffer_fops = {
+static const struct file_operations i830_buffer_fops = {
        .open = drm_open,
        .release = drm_release,
        .ioctl = drm_ioctl,