diff options
Diffstat (limited to 'drivers/misc')
| -rw-r--r-- | drivers/misc/phantom.c | 2 | ||||
| -rw-r--r-- | drivers/misc/sgi-gru/grufile.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/phantom.c b/drivers/misc/phantom.c index fa57b67593ae..90a95ce8dc34 100644 --- a/drivers/misc/phantom.c +++ b/drivers/misc/phantom.c | |||
| @@ -271,7 +271,7 @@ static unsigned int phantom_poll(struct file *file, poll_table *wait) | |||
| 271 | return mask; | 271 | return mask; |
| 272 | } | 272 | } |
| 273 | 273 | ||
| 274 | static struct file_operations phantom_file_ops = { | 274 | static const struct file_operations phantom_file_ops = { |
| 275 | .open = phantom_open, | 275 | .open = phantom_open, |
| 276 | .release = phantom_release, | 276 | .release = phantom_release, |
| 277 | .unlocked_ioctl = phantom_ioctl, | 277 | .unlocked_ioctl = phantom_ioctl, |
diff --git a/drivers/misc/sgi-gru/grufile.c b/drivers/misc/sgi-gru/grufile.c index 300e7ba391a0..41c8fe2a928c 100644 --- a/drivers/misc/sgi-gru/grufile.c +++ b/drivers/misc/sgi-gru/grufile.c | |||
| @@ -53,7 +53,6 @@ struct gru_stats_s gru_stats; | |||
| 53 | /* Guaranteed user available resources on each node */ | 53 | /* Guaranteed user available resources on each node */ |
| 54 | static int max_user_cbrs, max_user_dsr_bytes; | 54 | static int max_user_cbrs, max_user_dsr_bytes; |
| 55 | 55 | ||
| 56 | static struct file_operations gru_fops; | ||
| 57 | static struct miscdevice gru_miscdev; | 56 | static struct miscdevice gru_miscdev; |
| 58 | 57 | ||
| 59 | 58 | ||
| @@ -426,7 +425,7 @@ static void __exit gru_exit(void) | |||
| 426 | gru_proc_exit(); | 425 | gru_proc_exit(); |
| 427 | } | 426 | } |
| 428 | 427 | ||
| 429 | static struct file_operations gru_fops = { | 428 | static const struct file_operations gru_fops = { |
| 430 | .owner = THIS_MODULE, | 429 | .owner = THIS_MODULE, |
| 431 | .unlocked_ioctl = gru_file_unlocked_ioctl, | 430 | .unlocked_ioctl = gru_file_unlocked_ioctl, |
| 432 | .mmap = gru_file_mmap, | 431 | .mmap = gru_file_mmap, |
