diff options
Diffstat (limited to 'arch/powerpc/kernel/rtas_flash.c')
-rw-r--r-- | arch/powerpc/kernel/rtas_flash.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/rtas_flash.c b/arch/powerpc/kernel/rtas_flash.c index 0c4fcd34bfe5..f72118c0844f 100644 --- a/arch/powerpc/kernel/rtas_flash.c +++ b/arch/powerpc/kernel/rtas_flash.c | |||
@@ -702,13 +702,12 @@ static int initialize_flash_pde_data(const char *rtas_call_name, | |||
702 | } | 702 | } |
703 | 703 | ||
704 | static struct proc_dir_entry *create_flash_pde(const char *filename, | 704 | static struct proc_dir_entry *create_flash_pde(const char *filename, |
705 | struct file_operations *fops) | 705 | const struct file_operations *fops) |
706 | { | 706 | { |
707 | struct proc_dir_entry *ent = NULL; | 707 | struct proc_dir_entry *ent = NULL; |
708 | 708 | ||
709 | ent = create_proc_entry(filename, S_IRUSR | S_IWUSR, NULL); | 709 | ent = create_proc_entry(filename, S_IRUSR | S_IWUSR, NULL); |
710 | if (ent != NULL) { | 710 | if (ent != NULL) { |
711 | ent->nlink = 1; | ||
712 | ent->proc_fops = fops; | 711 | ent->proc_fops = fops; |
713 | ent->owner = THIS_MODULE; | 712 | ent->owner = THIS_MODULE; |
714 | } | 713 | } |
@@ -716,21 +715,21 @@ static struct proc_dir_entry *create_flash_pde(const char *filename, | |||
716 | return ent; | 715 | return ent; |
717 | } | 716 | } |
718 | 717 | ||
719 | static struct file_operations rtas_flash_operations = { | 718 | static const struct file_operations rtas_flash_operations = { |
720 | .read = rtas_flash_read, | 719 | .read = rtas_flash_read, |
721 | .write = rtas_flash_write, | 720 | .write = rtas_flash_write, |
722 | .open = rtas_excl_open, | 721 | .open = rtas_excl_open, |
723 | .release = rtas_flash_release, | 722 | .release = rtas_flash_release, |
724 | }; | 723 | }; |
725 | 724 | ||
726 | static struct file_operations manage_flash_operations = { | 725 | static const struct file_operations manage_flash_operations = { |
727 | .read = manage_flash_read, | 726 | .read = manage_flash_read, |
728 | .write = manage_flash_write, | 727 | .write = manage_flash_write, |
729 | .open = rtas_excl_open, | 728 | .open = rtas_excl_open, |
730 | .release = rtas_excl_release, | 729 | .release = rtas_excl_release, |
731 | }; | 730 | }; |
732 | 731 | ||
733 | static struct file_operations validate_flash_operations = { | 732 | static const struct file_operations validate_flash_operations = { |
734 | .read = validate_flash_read, | 733 | .read = validate_flash_read, |
735 | .write = validate_flash_write, | 734 | .write = validate_flash_write, |
736 | .open = rtas_excl_open, | 735 | .open = rtas_excl_open, |