diff options
Diffstat (limited to 'arch/cris/arch-v32/drivers/pcf8563.c')
-rw-r--r-- | arch/cris/arch-v32/drivers/pcf8563.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/cris/arch-v32/drivers/pcf8563.c b/arch/cris/arch-v32/drivers/pcf8563.c index 2fc7d75a35de..24b919b3821a 100644 --- a/arch/cris/arch-v32/drivers/pcf8563.c +++ b/arch/cris/arch-v32/drivers/pcf8563.c | |||
@@ -50,7 +50,7 @@ int pcf8563_ioctl(struct inode *, struct file *, unsigned int, unsigned long); | |||
50 | int pcf8563_open(struct inode *, struct file *); | 50 | int pcf8563_open(struct inode *, struct file *); |
51 | int pcf8563_release(struct inode *, struct file *); | 51 | int pcf8563_release(struct inode *, struct file *); |
52 | 52 | ||
53 | static struct file_operations pcf8563_fops = { | 53 | static const struct file_operations pcf8563_fops = { |
54 | owner: THIS_MODULE, | 54 | owner: THIS_MODULE, |
55 | ioctl: pcf8563_ioctl, | 55 | ioctl: pcf8563_ioctl, |
56 | open: pcf8563_open, | 56 | open: pcf8563_open, |
@@ -171,7 +171,7 @@ pcf8563_init(void) | |||
171 | goto err; | 171 | goto err; |
172 | 172 | ||
173 | if (register_chrdev(PCF8563_MAJOR, DEVICE_NAME, &pcf8563_fops) < 0) { | 173 | if (register_chrdev(PCF8563_MAJOR, DEVICE_NAME, &pcf8563_fops) < 0) { |
174 | printk(KERN_INFO "%s: Unable to get major numer %d for RTC device.\n", | 174 | printk(KERN_INFO "%s: Unable to get major number %d for RTC device.\n", |
175 | PCF8563_NAME, PCF8563_MAJOR); | 175 | PCF8563_NAME, PCF8563_MAJOR); |
176 | return -1; | 176 | return -1; |
177 | } | 177 | } |