diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_diag.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_diag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_diag.c b/drivers/infiniband/hw/ipath/ipath_diag.c index 28c087b824c2..0f13a2182cc7 100644 --- a/drivers/infiniband/hw/ipath/ipath_diag.c +++ b/drivers/infiniband/hw/ipath/ipath_diag.c | |||
@@ -59,7 +59,7 @@ static ssize_t ipath_diag_read(struct file *fp, char __user *data, | |||
59 | static ssize_t ipath_diag_write(struct file *fp, const char __user *data, | 59 | static ssize_t ipath_diag_write(struct file *fp, const char __user *data, |
60 | size_t count, loff_t *off); | 60 | size_t count, loff_t *off); |
61 | 61 | ||
62 | static struct file_operations diag_file_ops = { | 62 | static const struct file_operations diag_file_ops = { |
63 | .owner = THIS_MODULE, | 63 | .owner = THIS_MODULE, |
64 | .write = ipath_diag_write, | 64 | .write = ipath_diag_write, |
65 | .read = ipath_diag_read, | 65 | .read = ipath_diag_read, |
@@ -71,7 +71,7 @@ static ssize_t ipath_diagpkt_write(struct file *fp, | |||
71 | const char __user *data, | 71 | const char __user *data, |
72 | size_t count, loff_t *off); | 72 | size_t count, loff_t *off); |
73 | 73 | ||
74 | static struct file_operations diagpkt_file_ops = { | 74 | static const struct file_operations diagpkt_file_ops = { |
75 | .owner = THIS_MODULE, | 75 | .owner = THIS_MODULE, |
76 | .write = ipath_diagpkt_write, | 76 | .write = ipath_diagpkt_write, |
77 | }; | 77 | }; |