diff options
Diffstat (limited to 'drivers/char/misc.c')
| -rw-r--r-- | drivers/char/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c index d5fa19da330b..62ebe09656e3 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c | |||
| @@ -113,7 +113,7 @@ static int misc_seq_open(struct inode *inode, struct file *file) | |||
| 113 | return seq_open(file, &misc_seq_ops); | 113 | return seq_open(file, &misc_seq_ops); |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | static struct file_operations misc_proc_fops = { | 116 | static const struct file_operations misc_proc_fops = { |
| 117 | .owner = THIS_MODULE, | 117 | .owner = THIS_MODULE, |
| 118 | .open = misc_seq_open, | 118 | .open = misc_seq_open, |
| 119 | .read = seq_read, | 119 | .read = seq_read, |
| @@ -176,7 +176,7 @@ fail: | |||
| 176 | */ | 176 | */ |
| 177 | static struct class *misc_class; | 177 | static struct class *misc_class; |
| 178 | 178 | ||
| 179 | static struct file_operations misc_fops = { | 179 | static const struct file_operations misc_fops = { |
| 180 | .owner = THIS_MODULE, | 180 | .owner = THIS_MODULE, |
| 181 | .open = misc_open, | 181 | .open = misc_open, |
| 182 | }; | 182 | }; |
