diff options
author | David Howells <dhowells@redhat.com> | 2013-04-04 12:02:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:16:39 -0400 |
commit | 80e928f7ebb958f4d79d4099d1c5c0a015a23b93 (patch) | |
tree | 5a982cc0c8574cdeea268a99901d93f27689d6e7 /fs/proc | |
parent | 3cba53765bdaeef0a5ee8680b0dd4b028f3cae79 (diff) |
proc: Kill create_proc_entry()
Kill create_proc_entry() in favour of create_proc_read_entry(), proc_create()
and proc_create_data().
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/generic.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index c0ad720c37b9..5453f1c0b70c 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -650,8 +650,9 @@ struct proc_dir_entry *proc_mkdir(const char *name, | |||
650 | } | 650 | } |
651 | EXPORT_SYMBOL(proc_mkdir); | 651 | EXPORT_SYMBOL(proc_mkdir); |
652 | 652 | ||
653 | struct proc_dir_entry *create_proc_entry(const char *name, umode_t mode, | 653 | struct proc_dir_entry *create_proc_read_entry( |
654 | struct proc_dir_entry *parent) | 654 | const char *name, umode_t mode, struct proc_dir_entry *parent, |
655 | read_proc_t *read_proc, void *data) | ||
655 | { | 656 | { |
656 | struct proc_dir_entry *ent; | 657 | struct proc_dir_entry *ent; |
657 | 658 | ||
@@ -668,6 +669,8 @@ struct proc_dir_entry *create_proc_entry(const char *name, umode_t mode, | |||
668 | 669 | ||
669 | ent = __proc_create(&parent, name, mode, 1); | 670 | ent = __proc_create(&parent, name, mode, 1); |
670 | if (ent) { | 671 | if (ent) { |
672 | ent->read_proc = read_proc; | ||
673 | ent->data = data; | ||
671 | if (proc_register(parent, ent) < 0) { | 674 | if (proc_register(parent, ent) < 0) { |
672 | kfree(ent); | 675 | kfree(ent); |
673 | ent = NULL; | 676 | ent = NULL; |
@@ -675,7 +678,7 @@ struct proc_dir_entry *create_proc_entry(const char *name, umode_t mode, | |||
675 | } | 678 | } |
676 | return ent; | 679 | return ent; |
677 | } | 680 | } |
678 | EXPORT_SYMBOL(create_proc_entry); | 681 | EXPORT_SYMBOL(create_proc_read_entry); |
679 | 682 | ||
680 | struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, | 683 | struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, |
681 | struct proc_dir_entry *parent, | 684 | struct proc_dir_entry *parent, |