diff options
| -rw-r--r-- | drivers/uio/uio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 03b66fb734..cc246faa35 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c | |||
| @@ -39,7 +39,7 @@ struct uio_device { | |||
| 39 | 39 | ||
| 40 | static int uio_major; | 40 | static int uio_major; |
| 41 | static DEFINE_IDR(uio_idr); | 41 | static DEFINE_IDR(uio_idr); |
| 42 | static struct file_operations uio_fops; | 42 | static const struct file_operations uio_fops; |
| 43 | 43 | ||
| 44 | /* UIO class infrastructure */ | 44 | /* UIO class infrastructure */ |
| 45 | static struct uio_class { | 45 | static struct uio_class { |
| @@ -508,7 +508,7 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma) | |||
| 508 | } | 508 | } |
| 509 | } | 509 | } |
| 510 | 510 | ||
| 511 | static struct file_operations uio_fops = { | 511 | static const struct file_operations uio_fops = { |
| 512 | .owner = THIS_MODULE, | 512 | .owner = THIS_MODULE, |
| 513 | .open = uio_open, | 513 | .open = uio_open, |
| 514 | .release = uio_release, | 514 | .release = uio_release, |
