aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 0f3d97d41b0f..9d53b39a9cf8 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -675,9 +675,10 @@ struct proc_dir_entry *create_proc_entry(const char *name, mode_t mode,
675 return ent; 675 return ent;
676} 676}
677 677
678struct proc_dir_entry *proc_create(const char *name, mode_t mode, 678struct proc_dir_entry *proc_create_data(const char *name, mode_t mode,
679 struct proc_dir_entry *parent, 679 struct proc_dir_entry *parent,
680 const struct file_operations *proc_fops) 680 const struct file_operations *proc_fops,
681 void *data)
681{ 682{
682 struct proc_dir_entry *pde; 683 struct proc_dir_entry *pde;
683 nlink_t nlink; 684 nlink_t nlink;
@@ -698,6 +699,7 @@ struct proc_dir_entry *proc_create(const char *name, mode_t mode,
698 if (!pde) 699 if (!pde)
699 goto out; 700 goto out;
700 pde->proc_fops = proc_fops; 701 pde->proc_fops = proc_fops;
702 pde->data = data;
701 if (proc_register(parent, pde) < 0) 703 if (proc_register(parent, pde) < 0)
702 goto out_free; 704 goto out_free;
703 return pde; 705 return pde;