diff options
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/hdpuftrs/hdpu_cpustate.c | 2 | ||||
-rw-r--r-- | drivers/misc/hdpuftrs/hdpu_nexus.c | 2 | ||||
-rw-r--r-- | drivers/misc/ibmasm/ibmasmfs.c | 10 | ||||
-rw-r--r-- | drivers/misc/ioc4.c | 6 |
4 files changed, 9 insertions, 11 deletions
diff --git a/drivers/misc/hdpuftrs/hdpu_cpustate.c b/drivers/misc/hdpuftrs/hdpu_cpustate.c index 11a801be71c..ca86f113f36 100644 --- a/drivers/misc/hdpuftrs/hdpu_cpustate.c +++ b/drivers/misc/hdpuftrs/hdpu_cpustate.c | |||
@@ -169,7 +169,7 @@ static struct platform_driver hdpu_cpustate_driver = { | |||
169 | /* | 169 | /* |
170 | * The various file operations we support. | 170 | * The various file operations we support. |
171 | */ | 171 | */ |
172 | static struct file_operations cpustate_fops = { | 172 | static const struct file_operations cpustate_fops = { |
173 | owner:THIS_MODULE, | 173 | owner:THIS_MODULE, |
174 | open:cpustate_open, | 174 | open:cpustate_open, |
175 | release:cpustate_release, | 175 | release:cpustate_release, |
diff --git a/drivers/misc/hdpuftrs/hdpu_nexus.c b/drivers/misc/hdpuftrs/hdpu_nexus.c index ea9d5f233c8..6a51e99a807 100644 --- a/drivers/misc/hdpuftrs/hdpu_nexus.c +++ b/drivers/misc/hdpuftrs/hdpu_nexus.c | |||
@@ -72,11 +72,9 @@ static int hdpu_nexus_probe(struct platform_device *pdev) | |||
72 | printk("Could not map slot id\n"); | 72 | printk("Could not map slot id\n"); |
73 | hdpu_slot_id = create_proc_entry("sky_slot_id", 0666, &proc_root); | 73 | hdpu_slot_id = create_proc_entry("sky_slot_id", 0666, &proc_root); |
74 | hdpu_slot_id->read_proc = hdpu_slot_id_read; | 74 | hdpu_slot_id->read_proc = hdpu_slot_id_read; |
75 | hdpu_slot_id->nlink = 1; | ||
76 | 75 | ||
77 | hdpu_chassis_id = create_proc_entry("sky_chassis_id", 0666, &proc_root); | 76 | hdpu_chassis_id = create_proc_entry("sky_chassis_id", 0666, &proc_root); |
78 | hdpu_chassis_id->read_proc = hdpu_chassis_id_read; | 77 | hdpu_chassis_id->read_proc = hdpu_chassis_id_read; |
79 | hdpu_chassis_id->nlink = 1; | ||
80 | return 0; | 78 | return 0; |
81 | } | 79 | } |
82 | 80 | ||
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index b99dc507de2..c436d3de8b8 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
@@ -156,7 +156,7 @@ static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) | |||
156 | static struct dentry *ibmasmfs_create_file (struct super_block *sb, | 156 | static struct dentry *ibmasmfs_create_file (struct super_block *sb, |
157 | struct dentry *parent, | 157 | struct dentry *parent, |
158 | const char *name, | 158 | const char *name, |
159 | struct file_operations *fops, | 159 | const struct file_operations *fops, |
160 | void *data, | 160 | void *data, |
161 | int mode) | 161 | int mode) |
162 | { | 162 | { |
@@ -581,28 +581,28 @@ static ssize_t remote_settings_file_write(struct file *file, const char __user * | |||
581 | return count; | 581 | return count; |
582 | } | 582 | } |
583 | 583 | ||
584 | static struct file_operations command_fops = { | 584 | static const struct file_operations command_fops = { |
585 | .open = command_file_open, | 585 | .open = command_file_open, |
586 | .release = command_file_close, | 586 | .release = command_file_close, |
587 | .read = command_file_read, | 587 | .read = command_file_read, |
588 | .write = command_file_write, | 588 | .write = command_file_write, |
589 | }; | 589 | }; |
590 | 590 | ||
591 | static struct file_operations event_fops = { | 591 | static const struct file_operations event_fops = { |
592 | .open = event_file_open, | 592 | .open = event_file_open, |
593 | .release = event_file_close, | 593 | .release = event_file_close, |
594 | .read = event_file_read, | 594 | .read = event_file_read, |
595 | .write = event_file_write, | 595 | .write = event_file_write, |
596 | }; | 596 | }; |
597 | 597 | ||
598 | static struct file_operations r_heartbeat_fops = { | 598 | static const struct file_operations r_heartbeat_fops = { |
599 | .open = r_heartbeat_file_open, | 599 | .open = r_heartbeat_file_open, |
600 | .release = r_heartbeat_file_close, | 600 | .release = r_heartbeat_file_close, |
601 | .read = r_heartbeat_file_read, | 601 | .read = r_heartbeat_file_read, |
602 | .write = r_heartbeat_file_write, | 602 | .write = r_heartbeat_file_write, |
603 | }; | 603 | }; |
604 | 604 | ||
605 | static struct file_operations remote_settings_fops = { | 605 | static const struct file_operations remote_settings_fops = { |
606 | .open = remote_settings_file_open, | 606 | .open = remote_settings_file_open, |
607 | .release = remote_settings_file_close, | 607 | .release = remote_settings_file_close, |
608 | .read = remote_settings_file_read, | 608 | .read = remote_settings_file_read, |
diff --git a/drivers/misc/ioc4.c b/drivers/misc/ioc4.c index b995a15b752..6a5a05d1f39 100644 --- a/drivers/misc/ioc4.c +++ b/drivers/misc/ioc4.c | |||
@@ -309,7 +309,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) | |||
309 | ret = -ENODEV; | 309 | ret = -ENODEV; |
310 | goto out_pci; | 310 | goto out_pci; |
311 | } | 311 | } |
312 | if (!request_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs), | 312 | if (!request_mem_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs), |
313 | "ioc4_misc")) { | 313 | "ioc4_misc")) { |
314 | printk(KERN_WARNING | 314 | printk(KERN_WARNING |
315 | "%s: Unable to request IOC4 misc region " | 315 | "%s: Unable to request IOC4 misc region " |
@@ -379,7 +379,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) | |||
379 | return 0; | 379 | return 0; |
380 | 380 | ||
381 | out_misc_region: | 381 | out_misc_region: |
382 | release_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs)); | 382 | release_mem_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs)); |
383 | out_pci: | 383 | out_pci: |
384 | kfree(idd); | 384 | kfree(idd); |
385 | out_idd: | 385 | out_idd: |
@@ -418,7 +418,7 @@ ioc4_remove(struct pci_dev *pdev) | |||
418 | "Device removal may be incomplete.\n", | 418 | "Device removal may be incomplete.\n", |
419 | __FUNCTION__, pci_name(idd->idd_pdev)); | 419 | __FUNCTION__, pci_name(idd->idd_pdev)); |
420 | } | 420 | } |
421 | release_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs)); | 421 | release_mem_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs)); |
422 | 422 | ||
423 | /* Disable IOC4 and relinquish */ | 423 | /* Disable IOC4 and relinquish */ |
424 | pci_disable_device(pdev); | 424 | pci_disable_device(pdev); |