aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2007-02-12 03:55:33 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:45 -0500
commitfa027c2a0a0d6d1df6b29ee99048502c93da0dd4 (patch)
tree64a6b20c6c6e19a731882f830bd70ca5c8d99943
parent2b8693c0617e972fc0b2fd1ebf8de97e15b656c3 (diff)
[PATCH] mark struct file_operations const 4
Many struct file_operations in the kernel can be "const". Marking them const moves these to the .rodata section, which avoids false sharing with potential dirty data. In addition it'll catch accidental writes at compile time to these shared resources. [akpm@sdl.org: dvb fix] Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/macintosh/adb.c2
-rw-r--r--drivers/macintosh/ans-lcd.c2
-rw-r--r--drivers/macintosh/apm_emu.c2
-rw-r--r--drivers/macintosh/nvram.c2
-rw-r--r--drivers/macintosh/smu.c2
-rw-r--r--drivers/macintosh/via-pmu.c2
-rw-r--r--drivers/macintosh/via-pmu68k.c2
-rw-r--r--drivers/md/dm-ioctl.c2
-rw-r--r--drivers/md/md.c2
-rw-r--r--drivers/media/common/saa7146_fops.c2
-rw-r--r--drivers/media/radio/dsbr100.c2
-rw-r--r--drivers/media/radio/miropcm20-radio.c2
-rw-r--r--drivers/media/radio/miropcm20-rds.c2
-rw-r--r--drivers/media/radio/radio-aimslab.c2
-rw-r--r--drivers/media/radio/radio-aztech.c2
-rw-r--r--drivers/media/radio/radio-cadet.c2
-rw-r--r--drivers/media/radio/radio-gemtek-pci.c2
-rw-r--r--drivers/media/radio/radio-gemtek.c2
-rw-r--r--drivers/media/radio/radio-maestro.c2
-rw-r--r--drivers/media/radio/radio-maxiradio.c2
-rw-r--r--drivers/media/radio/radio-rtrack2.c2
-rw-r--r--drivers/media/radio/radio-sf16fmi.c2
-rw-r--r--drivers/media/radio/radio-sf16fmr2.c2
-rw-r--r--drivers/media/radio/radio-terratec.c2
-rw-r--r--drivers/media/radio/radio-trust.c2
-rw-r--r--drivers/media/radio/radio-typhoon.c2
-rw-r--r--drivers/media/radio/radio-zoltrix.c2
-rw-r--r--drivers/media/video/arv.c2
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c4
-rw-r--r--drivers/media/video/bw-qcam.c2
-rw-r--r--drivers/media/video/c-qcam.c2
-rw-r--r--drivers/media/video/cafe_ccic.c6
-rw-r--r--drivers/media/video/cpia.c2
-rw-r--r--drivers/media/video/cpia2/cpia2_v4l.c2
-rw-r--r--drivers/media/video/cx88/cx88-blackbird.c2
-rw-r--r--drivers/media/video/cx88/cx88-video.c4
-rw-r--r--drivers/media/video/dabusb.c2
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c2
-rw-r--r--drivers/media/video/et61x251/et61x251_core.c2
-rw-r--r--drivers/media/video/meye.c2
-rw-r--r--drivers/media/video/ov511.c2
-rw-r--r--drivers/media/video/pms.c2
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-v4l2.c2
-rw-r--r--drivers/media/video/pwc/pwc-if.c2
-rw-r--r--drivers/media/video/saa5246a.c2
-rw-r--r--drivers/media/video/saa5249.c2
-rw-r--r--drivers/media/video/saa7134/saa7134-empress.c2
-rw-r--r--drivers/media/video/saa7134/saa7134-oss.c4
-rw-r--r--drivers/media/video/saa7134/saa7134-video.c4
-rw-r--r--drivers/media/video/saa7134/saa7134.h4
-rw-r--r--drivers/media/video/se401.c2
-rw-r--r--drivers/media/video/sn9c102/sn9c102_core.c2
-rw-r--r--drivers/media/video/stradis.c2
-rw-r--r--drivers/media/video/stv680.c2
-rw-r--r--drivers/media/video/tvmixer.c2
-rw-r--r--drivers/media/video/usbvideo/usbvideo.c2
-rw-r--r--drivers/media/video/usbvideo/vicam.c2
-rw-r--r--drivers/media/video/usbvision/usbvision-video.c6
-rw-r--r--drivers/media/video/videodev.c4
-rw-r--r--drivers/media/video/vino.c2
-rw-r--r--drivers/media/video/vivi.c2
-rw-r--r--drivers/media/video/w9966.c2
-rw-r--r--drivers/media/video/w9968cf.c4
-rw-r--r--drivers/media/video/zc0301/zc0301_core.c2
-rw-r--r--drivers/media/video/zoran_driver.c2
-rw-r--r--drivers/media/video/zoran_procfs.c2
-rw-r--r--drivers/message/fusion/mptctl.c2
67 files changed, 78 insertions, 78 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c
index 7cec6de5e2b0..f729eebf771f 100644
--- a/drivers/macintosh/adb.c
+++ b/drivers/macintosh/adb.c
@@ -885,7 +885,7 @@ out:
885 return ret; 885 return ret;
886} 886}
887 887
888static struct file_operations adb_fops = { 888static const struct file_operations adb_fops = {
889 .owner = THIS_MODULE, 889 .owner = THIS_MODULE,
890 .llseek = no_llseek, 890 .llseek = no_llseek,
891 .read = adb_read, 891 .read = adb_read,
diff --git a/drivers/macintosh/ans-lcd.c b/drivers/macintosh/ans-lcd.c
index 2b8a6e821d44..cdd5a0f72e3c 100644
--- a/drivers/macintosh/ans-lcd.c
+++ b/drivers/macintosh/ans-lcd.c
@@ -121,7 +121,7 @@ anslcd_open( struct inode * inode, struct file * file )
121 return 0; 121 return 0;
122} 122}
123 123
124struct file_operations anslcd_fops = { 124const struct file_operations anslcd_fops = {
125 .write = anslcd_write, 125 .write = anslcd_write,
126 .ioctl = anslcd_ioctl, 126 .ioctl = anslcd_ioctl,
127 .open = anslcd_open, 127 .open = anslcd_open,
diff --git a/drivers/macintosh/apm_emu.c b/drivers/macintosh/apm_emu.c
index 4300c628f8af..a6d50f4fabd7 100644
--- a/drivers/macintosh/apm_emu.c
+++ b/drivers/macintosh/apm_emu.c
@@ -501,7 +501,7 @@ static int apm_emu_get_info(char *buf, char **start, off_t fpos, int length)
501 return p - buf; 501 return p - buf;
502} 502}
503 503
504static struct file_operations apm_bios_fops = { 504static const struct file_operations apm_bios_fops = {
505 .owner = THIS_MODULE, 505 .owner = THIS_MODULE,
506 .read = do_read, 506 .read = do_read,
507 .poll = do_poll, 507 .poll = do_poll,
diff --git a/drivers/macintosh/nvram.c b/drivers/macintosh/nvram.c
index 30791875fc97..b195d753d2ed 100644
--- a/drivers/macintosh/nvram.c
+++ b/drivers/macintosh/nvram.c
@@ -100,7 +100,7 @@ static int nvram_ioctl(struct inode *inode, struct file *file,
100 return 0; 100 return 0;
101} 101}
102 102
103struct file_operations nvram_fops = { 103const struct file_operations nvram_fops = {
104 .owner = THIS_MODULE, 104 .owner = THIS_MODULE,
105 .llseek = nvram_llseek, 105 .llseek = nvram_llseek,
106 .read = read_nvram, 106 .read = read_nvram,
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c
index 6f30459b9385..3096836d8bd3 100644
--- a/drivers/macintosh/smu.c
+++ b/drivers/macintosh/smu.c
@@ -1277,7 +1277,7 @@ static int smu_release(struct inode *inode, struct file *file)
1277} 1277}
1278 1278
1279 1279
1280static struct file_operations smu_device_fops = { 1280static const struct file_operations smu_device_fops = {
1281 .llseek = no_llseek, 1281 .llseek = no_llseek,
1282 .read = smu_read, 1282 .read = smu_read,
1283 .write = smu_write, 1283 .write = smu_write,
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c
index eb6653f69ce4..96bea4b62c43 100644
--- a/drivers/macintosh/via-pmu.c
+++ b/drivers/macintosh/via-pmu.c
@@ -2672,7 +2672,7 @@ pmu_ioctl(struct inode * inode, struct file *filp,
2672 return error; 2672 return error;
2673} 2673}
2674 2674
2675static struct file_operations pmu_device_fops = { 2675static const struct file_operations pmu_device_fops = {
2676 .read = pmu_read, 2676 .read = pmu_read,
2677 .write = pmu_write, 2677 .write = pmu_write,
2678 .poll = pmu_fpoll, 2678 .poll = pmu_fpoll,
diff --git a/drivers/macintosh/via-pmu68k.c b/drivers/macintosh/via-pmu68k.c
index 93e6ef9233f9..4f5b6fa196c5 100644
--- a/drivers/macintosh/via-pmu68k.c
+++ b/drivers/macintosh/via-pmu68k.c
@@ -1040,7 +1040,7 @@ static int pmu_ioctl(struct inode * inode, struct file *filp,
1040 return -EINVAL; 1040 return -EINVAL;
1041} 1041}
1042 1042
1043static struct file_operations pmu_device_fops = { 1043static const struct file_operations pmu_device_fops = {
1044 .read = pmu_read, 1044 .read = pmu_read,
1045 .write = pmu_write, 1045 .write = pmu_write,
1046 .ioctl = pmu_ioctl, 1046 .ioctl = pmu_ioctl,
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index cd6a184536a1..b441d82c338a 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -1473,7 +1473,7 @@ static int ctl_ioctl(struct inode *inode, struct file *file,
1473 return r; 1473 return r;
1474} 1474}
1475 1475
1476static struct file_operations _ctl_fops = { 1476static const struct file_operations _ctl_fops = {
1477 .ioctl = ctl_ioctl, 1477 .ioctl = ctl_ioctl,
1478 .owner = THIS_MODULE, 1478 .owner = THIS_MODULE,
1479}; 1479};
diff --git a/drivers/md/md.c b/drivers/md/md.c
index e8807ea5377d..e85fa75a7912 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -4920,7 +4920,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
4920 return mask; 4920 return mask;
4921} 4921}
4922 4922
4923static struct file_operations md_seq_fops = { 4923static const struct file_operations md_seq_fops = {
4924 .owner = THIS_MODULE, 4924 .owner = THIS_MODULE,
4925 .open = md_seq_open, 4925 .open = md_seq_open,
4926 .read = seq_read, 4926 .read = seq_read,
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c
index d867a6a9e430..b8dcfa165266 100644
--- a/drivers/media/common/saa7146_fops.c
+++ b/drivers/media/common/saa7146_fops.c
@@ -416,7 +416,7 @@ static ssize_t fops_write(struct file *file, const char __user *data, size_t cou
416 } 416 }
417} 417}
418 418
419static struct file_operations video_fops = 419static const struct file_operations video_fops =
420{ 420{
421 .owner = THIS_MODULE, 421 .owner = THIS_MODULE,
422 .open = fops_open, 422 .open = fops_open,
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c
index db865a0667e5..df8d0520d1d1 100644
--- a/drivers/media/radio/dsbr100.c
+++ b/drivers/media/radio/dsbr100.c
@@ -144,7 +144,7 @@ struct dsbr100_device {
144 144
145 145
146/* File system interface */ 146/* File system interface */
147static struct file_operations usb_dsbr100_fops = { 147static const struct file_operations usb_dsbr100_fops = {
148 .owner = THIS_MODULE, 148 .owner = THIS_MODULE,
149 .open = usb_dsbr100_open, 149 .open = usb_dsbr100_open,
150 .release = usb_dsbr100_close, 150 .release = usb_dsbr100_close,
diff --git a/drivers/media/radio/miropcm20-radio.c b/drivers/media/radio/miropcm20-radio.c
index c4312fa0e2f5..c7c9d1dc0690 100644
--- a/drivers/media/radio/miropcm20-radio.c
+++ b/drivers/media/radio/miropcm20-radio.c
@@ -216,7 +216,7 @@ static struct pcm20_device pcm20_unit = {
216 .muted = 1, 216 .muted = 1,
217}; 217};
218 218
219static struct file_operations pcm20_fops = { 219static const struct file_operations pcm20_fops = {
220 .owner = THIS_MODULE, 220 .owner = THIS_MODULE,
221 .open = video_exclusive_open, 221 .open = video_exclusive_open,
222 .release = video_exclusive_release, 222 .release = video_exclusive_release,
diff --git a/drivers/media/radio/miropcm20-rds.c b/drivers/media/radio/miropcm20-rds.c
index c1b1db65e668..c93490ec96bb 100644
--- a/drivers/media/radio/miropcm20-rds.c
+++ b/drivers/media/radio/miropcm20-rds.c
@@ -105,7 +105,7 @@ static ssize_t rds_f_read(struct file *file, char __user *buffer, size_t length,
105 } 105 }
106} 106}
107 107
108static struct file_operations rds_fops = { 108static const struct file_operations rds_fops = {
109 .owner = THIS_MODULE, 109 .owner = THIS_MODULE,
110 .read = rds_f_read, 110 .read = rds_f_read,
111 .open = rds_f_open, 111 .open = rds_f_open,
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c
index 3368a89bfadb..b2e88ad28977 100644
--- a/drivers/media/radio/radio-aimslab.c
+++ b/drivers/media/radio/radio-aimslab.c
@@ -358,7 +358,7 @@ static int rt_ioctl(struct inode *inode, struct file *file,
358 358
359static struct rt_device rtrack_unit; 359static struct rt_device rtrack_unit;
360 360
361static struct file_operations rtrack_fops = { 361static const struct file_operations rtrack_fops = {
362 .owner = THIS_MODULE, 362 .owner = THIS_MODULE,
363 .open = video_exclusive_open, 363 .open = video_exclusive_open,
364 .release = video_exclusive_release, 364 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c
index 3ba5fa8cf7e6..19d45cc940b5 100644
--- a/drivers/media/radio/radio-aztech.c
+++ b/drivers/media/radio/radio-aztech.c
@@ -314,7 +314,7 @@ static int az_ioctl(struct inode *inode, struct file *file,
314 314
315static struct az_device aztech_unit; 315static struct az_device aztech_unit;
316 316
317static struct file_operations aztech_fops = { 317static const struct file_operations aztech_fops = {
318 .owner = THIS_MODULE, 318 .owner = THIS_MODULE,
319 .open = video_exclusive_open, 319 .open = video_exclusive_open,
320 .release = video_exclusive_release, 320 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c
index 69d4b7919c5a..8fbf0d8bd278 100644
--- a/drivers/media/radio/radio-cadet.c
+++ b/drivers/media/radio/radio-cadet.c
@@ -507,7 +507,7 @@ cadet_poll(struct file *file, struct poll_table_struct *wait)
507} 507}
508 508
509 509
510static struct file_operations cadet_fops = { 510static const struct file_operations cadet_fops = {
511 .owner = THIS_MODULE, 511 .owner = THIS_MODULE,
512 .open = cadet_open, 512 .open = cadet_open,
513 .release = cadet_release, 513 .release = cadet_release,
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c
index eb14106f66fa..05e5aa77025f 100644
--- a/drivers/media/radio/radio-gemtek-pci.c
+++ b/drivers/media/radio/radio-gemtek-pci.c
@@ -346,7 +346,7 @@ MODULE_DEVICE_TABLE( pci, gemtek_pci_id );
346 346
347static int mx = 1; 347static int mx = 1;
348 348
349static struct file_operations gemtek_pci_fops = { 349static const struct file_operations gemtek_pci_fops = {
350 .owner = THIS_MODULE, 350 .owner = THIS_MODULE,
351 .open = video_exclusive_open, 351 .open = video_exclusive_open,
352 .release = video_exclusive_release, 352 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c
index 730fe16126cb..36c4be6622c7 100644
--- a/drivers/media/radio/radio-gemtek.c
+++ b/drivers/media/radio/radio-gemtek.c
@@ -296,7 +296,7 @@ static int gemtek_ioctl(struct inode *inode, struct file *file,
296 296
297static struct gemtek_device gemtek_unit; 297static struct gemtek_device gemtek_unit;
298 298
299static struct file_operations gemtek_fops = { 299static const struct file_operations gemtek_fops = {
300 .owner = THIS_MODULE, 300 .owner = THIS_MODULE,
301 .open = video_exclusive_open, 301 .open = video_exclusive_open,
302 .release = video_exclusive_release, 302 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-maestro.c b/drivers/media/radio/radio-maestro.c
index e8ce5f75cf12..9bba6eb10925 100644
--- a/drivers/media/radio/radio-maestro.c
+++ b/drivers/media/radio/radio-maestro.c
@@ -99,7 +99,7 @@ static struct pci_driver maestro_r_driver = {
99 .remove = __devexit_p(maestro_remove), 99 .remove = __devexit_p(maestro_remove),
100}; 100};
101 101
102static struct file_operations maestro_fops = { 102static const struct file_operations maestro_fops = {
103 .owner = THIS_MODULE, 103 .owner = THIS_MODULE,
104 .open = video_exclusive_open, 104 .open = video_exclusive_open,
105 .release = video_exclusive_release, 105 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
index c2eeae7a10d0..00a2f31d2af3 100644
--- a/drivers/media/radio/radio-maxiradio.c
+++ b/drivers/media/radio/radio-maxiradio.c
@@ -91,7 +91,7 @@ module_param(radio_nr, int, 0);
91static int radio_ioctl(struct inode *inode, struct file *file, 91static int radio_ioctl(struct inode *inode, struct file *file,
92 unsigned int cmd, unsigned long arg); 92 unsigned int cmd, unsigned long arg);
93 93
94static struct file_operations maxiradio_fops = { 94static const struct file_operations maxiradio_fops = {
95 .owner = THIS_MODULE, 95 .owner = THIS_MODULE,
96 .open = video_exclusive_open, 96 .open = video_exclusive_open,
97 .release = video_exclusive_release, 97 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c
index b9e98483e58d..f6683872251e 100644
--- a/drivers/media/radio/radio-rtrack2.c
+++ b/drivers/media/radio/radio-rtrack2.c
@@ -262,7 +262,7 @@ static int rt_ioctl(struct inode *inode, struct file *file,
262 262
263static struct rt_device rtrack2_unit; 263static struct rt_device rtrack2_unit;
264 264
265static struct file_operations rtrack2_fops = { 265static const struct file_operations rtrack2_fops = {
266 .owner = THIS_MODULE, 266 .owner = THIS_MODULE,
267 .open = video_exclusive_open, 267 .open = video_exclusive_open,
268 .release = video_exclusive_release, 268 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-sf16fmi.c b/drivers/media/radio/radio-sf16fmi.c
index ecc854b4ba38..f4619e4dda4f 100644
--- a/drivers/media/radio/radio-sf16fmi.c
+++ b/drivers/media/radio/radio-sf16fmi.c
@@ -265,7 +265,7 @@ static int fmi_ioctl(struct inode *inode, struct file *file,
265 265
266static struct fmi_device fmi_unit; 266static struct fmi_device fmi_unit;
267 267
268static struct file_operations fmi_fops = { 268static const struct file_operations fmi_fops = {
269 .owner = THIS_MODULE, 269 .owner = THIS_MODULE,
270 .open = video_exclusive_open, 270 .open = video_exclusive_open,
271 .release = video_exclusive_release, 271 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c
index 4444dce864a9..b96fafe1f9da 100644
--- a/drivers/media/radio/radio-sf16fmr2.c
+++ b/drivers/media/radio/radio-sf16fmr2.c
@@ -410,7 +410,7 @@ static int fmr2_ioctl(struct inode *inode, struct file *file,
410 410
411static struct fmr2_device fmr2_unit; 411static struct fmr2_device fmr2_unit;
412 412
413static struct file_operations fmr2_fops = { 413static const struct file_operations fmr2_fops = {
414 .owner = THIS_MODULE, 414 .owner = THIS_MODULE,
415 .open = video_exclusive_open, 415 .open = video_exclusive_open,
416 .release = video_exclusive_release, 416 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c
index f539491a0d76..d59a27accb84 100644
--- a/drivers/media/radio/radio-terratec.c
+++ b/drivers/media/radio/radio-terratec.c
@@ -338,7 +338,7 @@ static int tt_ioctl(struct inode *inode, struct file *file,
338 338
339static struct tt_device terratec_unit; 339static struct tt_device terratec_unit;
340 340
341static struct file_operations terratec_fops = { 341static const struct file_operations terratec_fops = {
342 .owner = THIS_MODULE, 342 .owner = THIS_MODULE,
343 .open = video_exclusive_open, 343 .open = video_exclusive_open,
344 .release = video_exclusive_release, 344 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c
index bb03ad5a2033..6d7f1e7116ea 100644
--- a/drivers/media/radio/radio-trust.c
+++ b/drivers/media/radio/radio-trust.c
@@ -325,7 +325,7 @@ static int tr_ioctl(struct inode *inode, struct file *file,
325 return video_usercopy(inode, file, cmd, arg, tr_do_ioctl); 325 return video_usercopy(inode, file, cmd, arg, tr_do_ioctl);
326} 326}
327 327
328static struct file_operations trust_fops = { 328static const struct file_operations trust_fops = {
329 .owner = THIS_MODULE, 329 .owner = THIS_MODULE,
330 .open = video_exclusive_open, 330 .open = video_exclusive_open,
331 .release = video_exclusive_release, 331 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c
index 4a72b4d4e62a..3031fef178cb 100644
--- a/drivers/media/radio/radio-typhoon.c
+++ b/drivers/media/radio/radio-typhoon.c
@@ -318,7 +318,7 @@ static struct typhoon_device typhoon_unit =
318 .mutefreq = CONFIG_RADIO_TYPHOON_MUTEFREQ, 318 .mutefreq = CONFIG_RADIO_TYPHOON_MUTEFREQ,
319}; 319};
320 320
321static struct file_operations typhoon_fops = { 321static const struct file_operations typhoon_fops = {
322 .owner = THIS_MODULE, 322 .owner = THIS_MODULE,
323 .open = video_exclusive_open, 323 .open = video_exclusive_open,
324 .release = video_exclusive_release, 324 .release = video_exclusive_release,
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c
index 671fe1b1e5bc..ec08491fb7c5 100644
--- a/drivers/media/radio/radio-zoltrix.c
+++ b/drivers/media/radio/radio-zoltrix.c
@@ -373,7 +373,7 @@ static int zol_ioctl(struct inode *inode, struct file *file,
373 373
374static struct zol_device zoltrix_unit; 374static struct zol_device zoltrix_unit;
375 375
376static struct file_operations zoltrix_fops = 376static const struct file_operations zoltrix_fops =
377{ 377{
378 .owner = THIS_MODULE, 378 .owner = THIS_MODULE,
379 .open = video_exclusive_open, 379 .open = video_exclusive_open,
diff --git a/drivers/media/video/arv.c b/drivers/media/video/arv.c
index 4861799eb430..649f52f9ad27 100644
--- a/drivers/media/video/arv.c
+++ b/drivers/media/video/arv.c
@@ -742,7 +742,7 @@ void ar_release(struct video_device *vfd)
742 * Video4Linux Module functions 742 * Video4Linux Module functions
743 * 743 *
744 ****************************************************************************/ 744 ****************************************************************************/
745static struct file_operations ar_fops = { 745static const struct file_operations ar_fops = {
746 .owner = THIS_MODULE, 746 .owner = THIS_MODULE,
747 .open = video_exclusive_open, 747 .open = video_exclusive_open,
748 .release = video_exclusive_release, 748 .release = video_exclusive_release,
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index ab8f970760f2..41fd09d7d11e 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -3174,7 +3174,7 @@ bttv_mmap(struct file *file, struct vm_area_struct *vma)
3174 return videobuf_mmap_mapper(bttv_queue(fh),vma); 3174 return videobuf_mmap_mapper(bttv_queue(fh),vma);
3175} 3175}
3176 3176
3177static struct file_operations bttv_fops = 3177static const struct file_operations bttv_fops =
3178{ 3178{
3179 .owner = THIS_MODULE, 3179 .owner = THIS_MODULE,
3180 .open = bttv_open, 3180 .open = bttv_open,
@@ -3332,7 +3332,7 @@ static unsigned int radio_poll(struct file *file, poll_table *wait)
3332 return cmd.result; 3332 return cmd.result;
3333} 3333}
3334 3334
3335static struct file_operations radio_fops = 3335static const struct file_operations radio_fops =
3336{ 3336{
3337 .owner = THIS_MODULE, 3337 .owner = THIS_MODULE,
3338 .open = radio_open, 3338 .open = radio_open,
diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c
index 7d0b6e59c6e2..7d47cbe6ad25 100644
--- a/drivers/media/video/bw-qcam.c
+++ b/drivers/media/video/bw-qcam.c
@@ -871,7 +871,7 @@ static ssize_t qcam_read(struct file *file, char __user *buf,
871 return len; 871 return len;
872} 872}
873 873
874static struct file_operations qcam_fops = { 874static const struct file_operations qcam_fops = {
875 .owner = THIS_MODULE, 875 .owner = THIS_MODULE,
876 .open = video_exclusive_open, 876 .open = video_exclusive_open,
877 .release = video_exclusive_release, 877 .release = video_exclusive_release,
diff --git a/drivers/media/video/c-qcam.c b/drivers/media/video/c-qcam.c
index a3989bd2f81b..925ff17efbbc 100644
--- a/drivers/media/video/c-qcam.c
+++ b/drivers/media/video/c-qcam.c
@@ -684,7 +684,7 @@ static ssize_t qcam_read(struct file *file, char __user *buf,
684} 684}
685 685
686/* video device template */ 686/* video device template */
687static struct file_operations qcam_fops = { 687static const struct file_operations qcam_fops = {
688 .owner = THIS_MODULE, 688 .owner = THIS_MODULE,
689 .open = video_exclusive_open, 689 .open = video_exclusive_open,
690 .release = video_exclusive_release, 690 .release = video_exclusive_release,
diff --git a/drivers/media/video/cafe_ccic.c b/drivers/media/video/cafe_ccic.c
index 3083c8075d13..fb1410c6f864 100644
--- a/drivers/media/video/cafe_ccic.c
+++ b/drivers/media/video/cafe_ccic.c
@@ -1715,7 +1715,7 @@ static void cafe_v4l_dev_release(struct video_device *vd)
1715 * clone it for specific real devices. 1715 * clone it for specific real devices.
1716 */ 1716 */
1717 1717
1718static struct file_operations cafe_v4l_fops = { 1718static const struct file_operations cafe_v4l_fops = {
1719 .owner = THIS_MODULE, 1719 .owner = THIS_MODULE,
1720 .open = cafe_v4l_open, 1720 .open = cafe_v4l_open,
1721 .release = cafe_v4l_release, 1721 .release = cafe_v4l_release,
@@ -1969,7 +1969,7 @@ static ssize_t cafe_dfs_read_regs(struct file *file,
1969 s - cafe_debug_buf); 1969 s - cafe_debug_buf);
1970} 1970}
1971 1971
1972static struct file_operations cafe_dfs_reg_ops = { 1972static const struct file_operations cafe_dfs_reg_ops = {
1973 .owner = THIS_MODULE, 1973 .owner = THIS_MODULE,
1974 .read = cafe_dfs_read_regs, 1974 .read = cafe_dfs_read_regs,
1975 .open = cafe_dfs_open 1975 .open = cafe_dfs_open
@@ -1995,7 +1995,7 @@ static ssize_t cafe_dfs_read_cam(struct file *file,
1995 s - cafe_debug_buf); 1995 s - cafe_debug_buf);
1996} 1996}
1997 1997
1998static struct file_operations cafe_dfs_cam_ops = { 1998static const struct file_operations cafe_dfs_cam_ops = {
1999 .owner = THIS_MODULE, 1999 .owner = THIS_MODULE,
2000 .read = cafe_dfs_read_cam, 2000 .read = cafe_dfs_read_cam,
2001 .open = cafe_dfs_open 2001 .open = cafe_dfs_open
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c
index 3b31a0dd2f0c..7e8d5ef58b61 100644
--- a/drivers/media/video/cpia.c
+++ b/drivers/media/video/cpia.c
@@ -3791,7 +3791,7 @@ static int cpia_mmap(struct file *file, struct vm_area_struct *vma)
3791 return 0; 3791 return 0;
3792} 3792}
3793 3793
3794static struct file_operations cpia_fops = { 3794static const struct file_operations cpia_fops = {
3795 .owner = THIS_MODULE, 3795 .owner = THIS_MODULE,
3796 .open = cpia_open, 3796 .open = cpia_open,
3797 .release = cpia_close, 3797 .release = cpia_close,
diff --git a/drivers/media/video/cpia2/cpia2_v4l.c b/drivers/media/video/cpia2/cpia2_v4l.c
index d09f49950f2a..1bda7ad9de11 100644
--- a/drivers/media/video/cpia2/cpia2_v4l.c
+++ b/drivers/media/video/cpia2/cpia2_v4l.c
@@ -1924,7 +1924,7 @@ static void reset_camera_struct_v4l(struct camera_data *cam)
1924/*** 1924/***
1925 * The v4l video device structure initialized for this device 1925 * The v4l video device structure initialized for this device
1926 ***/ 1926 ***/
1927static struct file_operations fops_template = { 1927static const struct file_operations fops_template = {
1928 .owner = THIS_MODULE, 1928 .owner = THIS_MODULE,
1929 .open = cpia2_open, 1929 .open = cpia2_open,
1930 .release = cpia2_close, 1930 .release = cpia2_close,
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c
index 0cf0360588e6..9a7a2996f20f 100644
--- a/drivers/media/video/cx88/cx88-blackbird.c
+++ b/drivers/media/video/cx88/cx88-blackbird.c
@@ -1051,7 +1051,7 @@ mpeg_mmap(struct file *file, struct vm_area_struct * vma)
1051 return videobuf_mmap_mapper(&fh->mpegq, vma); 1051 return videobuf_mmap_mapper(&fh->mpegq, vma);
1052} 1052}
1053 1053
1054static struct file_operations mpeg_fops = 1054static const struct file_operations mpeg_fops =
1055{ 1055{
1056 .owner = THIS_MODULE, 1056 .owner = THIS_MODULE,
1057 .open = mpeg_open, 1057 .open = mpeg_open,
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index 8613378428fd..c86a7e06235b 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -1808,7 +1808,7 @@ static irqreturn_t cx8800_irq(int irq, void *dev_id)
1808/* ----------------------------------------------------------- */ 1808/* ----------------------------------------------------------- */
1809/* exported stuff */ 1809/* exported stuff */
1810 1810
1811static struct file_operations video_fops = 1811static const struct file_operations video_fops =
1812{ 1812{
1813 .owner = THIS_MODULE, 1813 .owner = THIS_MODULE,
1814 .open = video_open, 1814 .open = video_open,
@@ -1839,7 +1839,7 @@ static struct video_device cx8800_vbi_template =
1839 .minor = -1, 1839 .minor = -1,
1840}; 1840};
1841 1841
1842static struct file_operations radio_fops = 1842static const struct file_operations radio_fops =
1843{ 1843{
1844 .owner = THIS_MODULE, 1844 .owner = THIS_MODULE,
1845 .open = video_open, 1845 .open = video_open,
diff --git a/drivers/media/video/dabusb.c b/drivers/media/video/dabusb.c
index 917021fc2993..ff4b238090ac 100644
--- a/drivers/media/video/dabusb.c
+++ b/drivers/media/video/dabusb.c
@@ -696,7 +696,7 @@ static int dabusb_ioctl (struct inode *inode, struct file *file, unsigned int cm
696 return ret; 696 return ret;
697} 697}
698 698
699static struct file_operations dabusb_fops = 699static const struct file_operations dabusb_fops =
700{ 700{
701 .owner = THIS_MODULE, 701 .owner = THIS_MODULE,
702 .llseek = no_llseek, 702 .llseek = no_llseek,
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 36e72c207a8f..bec67609500f 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -1480,7 +1480,7 @@ static int em28xx_v4l2_ioctl(struct inode *inode, struct file *filp,
1480 return ret; 1480 return ret;
1481} 1481}
1482 1482
1483static struct file_operations em28xx_v4l_fops = { 1483static const struct file_operations em28xx_v4l_fops = {
1484 .owner = THIS_MODULE, 1484 .owner = THIS_MODULE,
1485 .open = em28xx_v4l2_open, 1485 .open = em28xx_v4l2_open,
1486 .release = em28xx_v4l2_close, 1486 .release = em28xx_v4l2_close,
diff --git a/drivers/media/video/et61x251/et61x251_core.c b/drivers/media/video/et61x251/et61x251_core.c
index 86e353b26b53..49792ae8c61c 100644
--- a/drivers/media/video/et61x251/et61x251_core.c
+++ b/drivers/media/video/et61x251/et61x251_core.c
@@ -2454,7 +2454,7 @@ static int et61x251_ioctl(struct inode* inode, struct file* filp,
2454} 2454}
2455 2455
2456 2456
2457static struct file_operations et61x251_fops = { 2457static const struct file_operations et61x251_fops = {
2458 .owner = THIS_MODULE, 2458 .owner = THIS_MODULE,
2459 .open = et61x251_open, 2459 .open = et61x251_open,
2460 .release = et61x251_release, 2460 .release = et61x251_release,
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c
index 616a35da191d..9528e10c2828 100644
--- a/drivers/media/video/meye.c
+++ b/drivers/media/video/meye.c
@@ -1748,7 +1748,7 @@ static int meye_mmap(struct file *file, struct vm_area_struct *vma)
1748 return 0; 1748 return 0;
1749} 1749}
1750 1750
1751static struct file_operations meye_fops = { 1751static const struct file_operations meye_fops = {
1752 .owner = THIS_MODULE, 1752 .owner = THIS_MODULE,
1753 .open = meye_open, 1753 .open = meye_open,
1754 .release = meye_release, 1754 .release = meye_release,
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index b4db2cbb5a84..e5edff1059a2 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -4653,7 +4653,7 @@ ov51x_v4l1_mmap(struct file *file, struct vm_area_struct *vma)
4653 return 0; 4653 return 0;
4654} 4654}
4655 4655
4656static struct file_operations ov511_fops = { 4656static const struct file_operations ov511_fops = {
4657 .owner = THIS_MODULE, 4657 .owner = THIS_MODULE,
4658 .open = ov51x_v4l1_open, 4658 .open = ov51x_v4l1_open,
4659 .release = ov51x_v4l1_close, 4659 .release = ov51x_v4l1_close,
diff --git a/drivers/media/video/pms.c b/drivers/media/video/pms.c
index 5d681fa8bcb1..d38d3dc4a012 100644
--- a/drivers/media/video/pms.c
+++ b/drivers/media/video/pms.c
@@ -881,7 +881,7 @@ static ssize_t pms_read(struct file *file, char __user *buf,
881 return len; 881 return len;
882} 882}
883 883
884static struct file_operations pms_fops = { 884static const struct file_operations pms_fops = {
885 .owner = THIS_MODULE, 885 .owner = THIS_MODULE,
886 .open = video_exclusive_open, 886 .open = video_exclusive_open,
887 .release = video_exclusive_release, 887 .release = video_exclusive_release,
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
index bb40e9085977..6cf17080eb49 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
@@ -986,7 +986,7 @@ static unsigned int pvr2_v4l2_poll(struct file *file, poll_table *wait)
986} 986}
987 987
988 988
989static struct file_operations vdev_fops = { 989static const struct file_operations vdev_fops = {
990 .owner = THIS_MODULE, 990 .owner = THIS_MODULE,
991 .open = pvr2_v4l2_open, 991 .open = pvr2_v4l2_open,
992 .release = pvr2_v4l2_release, 992 .release = pvr2_v4l2_release,
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index a996aad79276..9825fd348108 100644
--- a/drivers/media/video/pwc/pwc-if.c
+++ b/drivers/media/video/pwc/pwc-if.c
@@ -152,7 +152,7 @@ static int pwc_video_ioctl(struct inode *inode, struct file *file,
152 unsigned int ioctlnr, unsigned long arg); 152 unsigned int ioctlnr, unsigned long arg);
153static int pwc_video_mmap(struct file *file, struct vm_area_struct *vma); 153static int pwc_video_mmap(struct file *file, struct vm_area_struct *vma);
154 154
155static struct file_operations pwc_fops = { 155static const struct file_operations pwc_fops = {
156 .owner = THIS_MODULE, 156 .owner = THIS_MODULE,
157 .open = pwc_video_open, 157 .open = pwc_video_open,
158 .release = pwc_video_close, 158 .release = pwc_video_close,
diff --git a/drivers/media/video/saa5246a.c b/drivers/media/video/saa5246a.c
index 77bb940a1a4f..0b5d159895bf 100644
--- a/drivers/media/video/saa5246a.c
+++ b/drivers/media/video/saa5246a.c
@@ -817,7 +817,7 @@ static void __exit cleanup_saa_5246a (void)
817module_init(init_saa_5246a); 817module_init(init_saa_5246a);
818module_exit(cleanup_saa_5246a); 818module_exit(cleanup_saa_5246a);
819 819
820static struct file_operations saa_fops = { 820static const struct file_operations saa_fops = {
821 .owner = THIS_MODULE, 821 .owner = THIS_MODULE,
822 .open = saa5246a_open, 822 .open = saa5246a_open,
823 .release = saa5246a_release, 823 .release = saa5246a_release,
diff --git a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c
index bb3fb4387f65..3e84737878a8 100644
--- a/drivers/media/video/saa5249.c
+++ b/drivers/media/video/saa5249.c
@@ -699,7 +699,7 @@ static void __exit cleanup_saa_5249 (void)
699module_init(init_saa_5249); 699module_init(init_saa_5249);
700module_exit(cleanup_saa_5249); 700module_exit(cleanup_saa_5249);
701 701
702static struct file_operations saa_fops = { 702static const struct file_operations saa_fops = {
703 .owner = THIS_MODULE, 703 .owner = THIS_MODULE,
704 .open = saa5249_open, 704 .open = saa5249_open,
705 .release = saa5249_release, 705 .release = saa5249_release,
diff --git a/drivers/media/video/saa7134/saa7134-empress.c b/drivers/media/video/saa7134/saa7134-empress.c
index daaae870a2c4..f521603482ca 100644
--- a/drivers/media/video/saa7134/saa7134-empress.c
+++ b/drivers/media/video/saa7134/saa7134-empress.c
@@ -319,7 +319,7 @@ static int ts_ioctl(struct inode *inode, struct file *file,
319 return video_usercopy(inode, file, cmd, arg, ts_do_ioctl); 319 return video_usercopy(inode, file, cmd, arg, ts_do_ioctl);
320} 320}
321 321
322static struct file_operations ts_fops = 322static const struct file_operations ts_fops =
323{ 323{
324 .owner = THIS_MODULE, 324 .owner = THIS_MODULE,
325 .open = ts_open, 325 .open = ts_open,
diff --git a/drivers/media/video/saa7134/saa7134-oss.c b/drivers/media/video/saa7134/saa7134-oss.c
index bfcb860d14cc..72444f039e3d 100644
--- a/drivers/media/video/saa7134/saa7134-oss.c
+++ b/drivers/media/video/saa7134/saa7134-oss.c
@@ -563,7 +563,7 @@ static unsigned int dsp_poll(struct file *file, struct poll_table_struct *wait)
563 return mask; 563 return mask;
564} 564}
565 565
566struct file_operations saa7134_dsp_fops = { 566const struct file_operations saa7134_dsp_fops = {
567 .owner = THIS_MODULE, 567 .owner = THIS_MODULE,
568 .open = dsp_open, 568 .open = dsp_open,
569 .release = dsp_release, 569 .release = dsp_release,
@@ -804,7 +804,7 @@ static int mixer_ioctl(struct inode *inode, struct file *file,
804 } 804 }
805} 805}
806 806
807struct file_operations saa7134_mixer_fops = { 807const struct file_operations saa7134_mixer_fops = {
808 .owner = THIS_MODULE, 808 .owner = THIS_MODULE,
809 .open = mixer_open, 809 .open = mixer_open,
810 .release = mixer_release, 810 .release = mixer_release,
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c
index 830617ea81cc..f2cb63053041 100644
--- a/drivers/media/video/saa7134/saa7134-video.c
+++ b/drivers/media/video/saa7134/saa7134-video.c
@@ -2336,7 +2336,7 @@ static int radio_ioctl(struct inode *inode, struct file *file,
2336 return video_usercopy(inode, file, cmd, arg, radio_do_ioctl); 2336 return video_usercopy(inode, file, cmd, arg, radio_do_ioctl);
2337} 2337}
2338 2338
2339static struct file_operations video_fops = 2339static const struct file_operations video_fops =
2340{ 2340{
2341 .owner = THIS_MODULE, 2341 .owner = THIS_MODULE,
2342 .open = video_open, 2342 .open = video_open,
@@ -2349,7 +2349,7 @@ static struct file_operations video_fops =
2349 .llseek = no_llseek, 2349 .llseek = no_llseek,
2350}; 2350};
2351 2351
2352static struct file_operations radio_fops = 2352static const struct file_operations radio_fops =
2353{ 2353{
2354 .owner = THIS_MODULE, 2354 .owner = THIS_MODULE,
2355 .open = video_open, 2355 .open = video_open,
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h
index e88ad7b40c47..88cd1297df13 100644
--- a/drivers/media/video/saa7134/saa7134.h
+++ b/drivers/media/video/saa7134/saa7134.h
@@ -683,8 +683,8 @@ int saa_dsp_writel(struct saa7134_dev *dev, int reg, u32 value);
683/* ----------------------------------------------------------- */ 683/* ----------------------------------------------------------- */
684/* saa7134-oss.c */ 684/* saa7134-oss.c */
685 685
686extern struct file_operations saa7134_dsp_fops; 686extern const struct file_operations saa7134_dsp_fops;
687extern struct file_operations saa7134_mixer_fops; 687extern const struct file_operations saa7134_mixer_fops;
688 688
689int saa7134_oss_init1(struct saa7134_dev *dev); 689int saa7134_oss_init1(struct saa7134_dev *dev);
690int saa7134_oss_fini(struct saa7134_dev *dev); 690int saa7134_oss_fini(struct saa7134_dev *dev);
diff --git a/drivers/media/video/se401.c b/drivers/media/video/se401.c
index 7aeec574d7ce..038448f5a978 100644
--- a/drivers/media/video/se401.c
+++ b/drivers/media/video/se401.c
@@ -1185,7 +1185,7 @@ static int se401_mmap(struct file *file, struct vm_area_struct *vma)
1185 return 0; 1185 return 0;
1186} 1186}
1187 1187
1188static struct file_operations se401_fops = { 1188static const struct file_operations se401_fops = {
1189 .owner = THIS_MODULE, 1189 .owner = THIS_MODULE,
1190 .open = se401_open, 1190 .open = se401_open,
1191 .release = se401_close, 1191 .release = se401_close,
diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c
index 18458d46c0ff..04d4c8f28b89 100644
--- a/drivers/media/video/sn9c102/sn9c102_core.c
+++ b/drivers/media/video/sn9c102/sn9c102_core.c
@@ -2736,7 +2736,7 @@ static int sn9c102_ioctl(struct inode* inode, struct file* filp,
2736 2736
2737/*****************************************************************************/ 2737/*****************************************************************************/
2738 2738
2739static struct file_operations sn9c102_fops = { 2739static const struct file_operations sn9c102_fops = {
2740 .owner = THIS_MODULE, 2740 .owner = THIS_MODULE,
2741 .open = sn9c102_open, 2741 .open = sn9c102_open,
2742 .release = sn9c102_release, 2742 .release = sn9c102_release,
diff --git a/drivers/media/video/stradis.c b/drivers/media/video/stradis.c
index 525d81288d55..3e736be5de84 100644
--- a/drivers/media/video/stradis.c
+++ b/drivers/media/video/stradis.c
@@ -1901,7 +1901,7 @@ static int saa_release(struct inode *inode, struct file *file)
1901 return 0; 1901 return 0;
1902} 1902}
1903 1903
1904static struct file_operations saa_fops = { 1904static const struct file_operations saa_fops = {
1905 .owner = THIS_MODULE, 1905 .owner = THIS_MODULE,
1906 .open = saa_open, 1906 .open = saa_open,
1907 .release = saa_release, 1907 .release = saa_release,
diff --git a/drivers/media/video/stv680.c b/drivers/media/video/stv680.c
index a1ec3aca3f91..bf3aa8d2d57e 100644
--- a/drivers/media/video/stv680.c
+++ b/drivers/media/video/stv680.c
@@ -1380,7 +1380,7 @@ static ssize_t stv680_read (struct file *file, char __user *buf,
1380 return realcount; 1380 return realcount;
1381} /* stv680_read */ 1381} /* stv680_read */
1382 1382
1383static struct file_operations stv680_fops = { 1383static const struct file_operations stv680_fops = {
1384 .owner = THIS_MODULE, 1384 .owner = THIS_MODULE,
1385 .open = stv_open, 1385 .open = stv_open,
1386 .release = stv_close, 1386 .release = stv_close,
diff --git a/drivers/media/video/tvmixer.c b/drivers/media/video/tvmixer.c
index 1654576de10e..e2747bd373fd 100644
--- a/drivers/media/video/tvmixer.c
+++ b/drivers/media/video/tvmixer.c
@@ -228,7 +228,7 @@ static struct i2c_driver driver = {
228 .detach_client = tvmixer_clients, 228 .detach_client = tvmixer_clients,
229}; 229};
230 230
231static struct file_operations tvmixer_fops = { 231static const struct file_operations tvmixer_fops = {
232 .owner = THIS_MODULE, 232 .owner = THIS_MODULE,
233 .llseek = no_llseek, 233 .llseek = no_llseek,
234 .ioctl = tvmixer_ioctl, 234 .ioctl = tvmixer_ioctl,
diff --git a/drivers/media/video/usbvideo/usbvideo.c b/drivers/media/video/usbvideo/usbvideo.c
index b560c9d7c516..d34d8c8b7376 100644
--- a/drivers/media/video/usbvideo/usbvideo.c
+++ b/drivers/media/video/usbvideo/usbvideo.c
@@ -945,7 +945,7 @@ static int usbvideo_find_struct(struct usbvideo *cams)
945 return rv; 945 return rv;
946} 946}
947 947
948static struct file_operations usbvideo_fops = { 948static const struct file_operations usbvideo_fops = {
949 .owner = THIS_MODULE, 949 .owner = THIS_MODULE,
950 .open = usbvideo_v4l_open, 950 .open = usbvideo_v4l_open,
951 .release =usbvideo_v4l_close, 951 .release =usbvideo_v4l_close,
diff --git a/drivers/media/video/usbvideo/vicam.c b/drivers/media/video/usbvideo/vicam.c
index 08f9559a6bfa..876fd2768242 100644
--- a/drivers/media/video/usbvideo/vicam.c
+++ b/drivers/media/video/usbvideo/vicam.c
@@ -1234,7 +1234,7 @@ static inline void vicam_create_proc_entry(struct vicam_camera *cam) { }
1234static inline void vicam_destroy_proc_entry(void *ptr) { } 1234static inline void vicam_destroy_proc_entry(void *ptr) { }
1235#endif 1235#endif
1236 1236
1237static struct file_operations vicam_fops = { 1237static const struct file_operations vicam_fops = {
1238 .owner = THIS_MODULE, 1238 .owner = THIS_MODULE,
1239 .open = vicam_open, 1239 .open = vicam_open,
1240 .release = vicam_close, 1240 .release = vicam_close,
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index bdd6301d2a47..4eb7330b96f8 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -1475,7 +1475,7 @@ static int usbvision_vbi_ioctl(struct inode *inode, struct file *file,
1475// 1475//
1476 1476
1477// Video template 1477// Video template
1478static struct file_operations usbvision_fops = { 1478static const struct file_operations usbvision_fops = {
1479 .owner = THIS_MODULE, 1479 .owner = THIS_MODULE,
1480 .open = usbvision_v4l2_open, 1480 .open = usbvision_v4l2_open,
1481 .release = usbvision_v4l2_close, 1481 .release = usbvision_v4l2_close,
@@ -1496,7 +1496,7 @@ static struct video_device usbvision_video_template = {
1496 1496
1497 1497
1498// Radio template 1498// Radio template
1499static struct file_operations usbvision_radio_fops = { 1499static const struct file_operations usbvision_radio_fops = {
1500 .owner = THIS_MODULE, 1500 .owner = THIS_MODULE,
1501 .open = usbvision_radio_open, 1501 .open = usbvision_radio_open,
1502 .release = usbvision_radio_close, 1502 .release = usbvision_radio_close,
@@ -1517,7 +1517,7 @@ static struct video_device usbvision_radio_template=
1517 1517
1518 1518
1519// vbi template 1519// vbi template
1520static struct file_operations usbvision_vbi_fops = { 1520static const struct file_operations usbvision_vbi_fops = {
1521 .owner = THIS_MODULE, 1521 .owner = THIS_MODULE,
1522 .open = usbvision_vbi_open, 1522 .open = usbvision_vbi_open,
1523 .release = usbvision_vbi_close, 1523 .release = usbvision_vbi_close,
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
index 6a0e8ca72948..30c3822692fb 100644
--- a/drivers/media/video/videodev.c
+++ b/drivers/media/video/videodev.c
@@ -1561,7 +1561,7 @@ out:
1561} 1561}
1562 1562
1563 1563
1564static struct file_operations video_fops; 1564static const struct file_operations video_fops;
1565 1565
1566/** 1566/**
1567 * video_register_device - register video4linux devices 1567 * video_register_device - register video4linux devices
@@ -1709,7 +1709,7 @@ void video_unregister_device(struct video_device *vfd)
1709/* 1709/*
1710 * Video fs operations 1710 * Video fs operations
1711 */ 1711 */
1712static struct file_operations video_fops= 1712static const struct file_operations video_fops=
1713{ 1713{
1714 .owner = THIS_MODULE, 1714 .owner = THIS_MODULE,
1715 .llseek = no_llseek, 1715 .llseek = no_llseek,
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c
index a373c142e742..0c658b74f2c4 100644
--- a/drivers/media/video/vino.c
+++ b/drivers/media/video/vino.c
@@ -4390,7 +4390,7 @@ static int vino_ioctl(struct inode *inode, struct file *file,
4390// __initdata 4390// __initdata
4391static int vino_init_stage = 0; 4391static int vino_init_stage = 0;
4392 4392
4393static struct file_operations vino_fops = { 4393static const struct file_operations vino_fops = {
4394 .owner = THIS_MODULE, 4394 .owner = THIS_MODULE,
4395 .open = vino_open, 4395 .open = vino_open,
4396 .release = vino_close, 4396 .release = vino_close,
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index d4cf55666731..cfb6b1f0402c 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -1292,7 +1292,7 @@ vivi_mmap(struct file *file, struct vm_area_struct * vma)
1292 return ret; 1292 return ret;
1293} 1293}
1294 1294
1295static struct file_operations vivi_fops = { 1295static const struct file_operations vivi_fops = {
1296 .owner = THIS_MODULE, 1296 .owner = THIS_MODULE,
1297 .open = vivi_open, 1297 .open = vivi_open,
1298 .release = vivi_release, 1298 .release = vivi_release,
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c
index 8d14f308f171..47366408637c 100644
--- a/drivers/media/video/w9966.c
+++ b/drivers/media/video/w9966.c
@@ -183,7 +183,7 @@ static int w9966_v4l_ioctl(struct inode *inode, struct file *file,
183static ssize_t w9966_v4l_read(struct file *file, char __user *buf, 183static ssize_t w9966_v4l_read(struct file *file, char __user *buf,
184 size_t count, loff_t *ppos); 184 size_t count, loff_t *ppos);
185 185
186static struct file_operations w9966_fops = { 186static const struct file_operations w9966_fops = {
187 .owner = THIS_MODULE, 187 .owner = THIS_MODULE,
188 .open = video_exclusive_open, 188 .open = video_exclusive_open,
189 .release = video_exclusive_release, 189 .release = video_exclusive_release,
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c
index 9f403af7b040..6e64af293be5 100644
--- a/drivers/media/video/w9968cf.c
+++ b/drivers/media/video/w9968cf.c
@@ -399,7 +399,7 @@ MODULE_PARM_DESC(specific_debug,
399 ****************************************************************************/ 399 ****************************************************************************/
400 400
401/* Video4linux interface */ 401/* Video4linux interface */
402static struct file_operations w9968cf_fops; 402static const struct file_operations w9968cf_fops;
403static int w9968cf_open(struct inode*, struct file*); 403static int w9968cf_open(struct inode*, struct file*);
404static int w9968cf_release(struct inode*, struct file*); 404static int w9968cf_release(struct inode*, struct file*);
405static int w9968cf_mmap(struct file*, struct vm_area_struct*); 405static int w9968cf_mmap(struct file*, struct vm_area_struct*);
@@ -3466,7 +3466,7 @@ ioctl_fail:
3466} 3466}
3467 3467
3468 3468
3469static struct file_operations w9968cf_fops = { 3469static const struct file_operations w9968cf_fops = {
3470 .owner = THIS_MODULE, 3470 .owner = THIS_MODULE,
3471 .open = w9968cf_open, 3471 .open = w9968cf_open,
3472 .release = w9968cf_release, 3472 .release = w9968cf_release,
diff --git a/drivers/media/video/zc0301/zc0301_core.c b/drivers/media/video/zc0301/zc0301_core.c
index 52d0f759ee00..8da7f15f6290 100644
--- a/drivers/media/video/zc0301/zc0301_core.c
+++ b/drivers/media/video/zc0301/zc0301_core.c
@@ -1871,7 +1871,7 @@ static int zc0301_ioctl(struct inode* inode, struct file* filp,
1871} 1871}
1872 1872
1873 1873
1874static struct file_operations zc0301_fops = { 1874static const struct file_operations zc0301_fops = {
1875 .owner = THIS_MODULE, 1875 .owner = THIS_MODULE,
1876 .open = zc0301_open, 1876 .open = zc0301_open,
1877 .release = zc0301_release, 1877 .release = zc0301_release,
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c
index e10a9ee25fc5..074323733352 100644
--- a/drivers/media/video/zoran_driver.c
+++ b/drivers/media/video/zoran_driver.c
@@ -4679,7 +4679,7 @@ zoran_mmap (struct file *file,
4679 return 0; 4679 return 0;
4680} 4680}
4681 4681
4682static struct file_operations zoran_fops = { 4682static const struct file_operations zoran_fops = {
4683 .owner = THIS_MODULE, 4683 .owner = THIS_MODULE,
4684 .open = zoran_open, 4684 .open = zoran_open,
4685 .release = zoran_close, 4685 .release = zoran_close,
diff --git a/drivers/media/video/zoran_procfs.c b/drivers/media/video/zoran_procfs.c
index c374c76b3753..446ae8d5c3df 100644
--- a/drivers/media/video/zoran_procfs.c
+++ b/drivers/media/video/zoran_procfs.c
@@ -186,7 +186,7 @@ static ssize_t zoran_write(struct file *file, const char __user *buffer,
186 return count; 186 return count;
187} 187}
188 188
189static struct file_operations zoran_operations = { 189static const struct file_operations zoran_operations = {
190 .open = zoran_open, 190 .open = zoran_open,
191 .read = seq_read, 191 .read = seq_read,
192 .write = zoran_write, 192 .write = zoran_write,
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c
index b0b80428d110..9d0f30478e46 100644
--- a/drivers/message/fusion/mptctl.c
+++ b/drivers/message/fusion/mptctl.c
@@ -2662,7 +2662,7 @@ mptctl_hp_targetinfo(unsigned long arg)
2662 2662
2663/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2663/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
2664 2664
2665static struct file_operations mptctl_fops = { 2665static const struct file_operations mptctl_fops = {
2666 .owner = THIS_MODULE, 2666 .owner = THIS_MODULE,
2667 .llseek = no_llseek, 2667 .llseek = no_llseek,
2668 .release = mptctl_release, 2668 .release = mptctl_release,