summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-03-19 08:36:01 +1100
committerDave Airlie <airlied@linux.ie>2007-03-19 08:36:01 +1100
commitbbb6fc9307c42891120faeaca5c57cf7884866ad (patch)
tree9c313c05036736ffb2bfbacea8f910c22f115387 /linux-core
parent483f6a113d21b90821d091c4dae413703f9907e5 (diff)
make drm fops const from kernel
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_drv.c2
-rw-r--r--linux-core/i810_dma.c2
-rw-r--r--linux-core/i830_dma.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index ff9b29e7..fba59b9c 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -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
};
diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c
index 41467001..3f2dad38 100644
--- a/linux-core/i810_dma.c
+++ b/linux-core/i810_dma.c
@@ -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,
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c
index 406a3ff7..78bd6236 100644
--- a/linux-core/i830_dma.c
+++ b/linux-core/i830_dma.c
@@ -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,