diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2008-04-29 04:01:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:17 -0400 |
commit | 0d5c9f5f59a61cf8e98e2925cb5d81cbe7694305 (patch) | |
tree | f0df6740f1797cd2ac76a684d29fa9162fd61816 /fs/proc/proc_tty.c | |
parent | 925d1c401fa6cfd0df5d2e37da8981494ccdec07 (diff) |
proc: switch to proc_create()
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/proc_tty.c')
-rw-r--r-- | fs/proc/proc_tty.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c index 49816e00b51a..63f45383035d 100644 --- a/fs/proc/proc_tty.c +++ b/fs/proc/proc_tty.c | |||
@@ -214,7 +214,6 @@ void proc_tty_unregister_driver(struct tty_driver *driver) | |||
214 | */ | 214 | */ |
215 | void __init proc_tty_init(void) | 215 | void __init proc_tty_init(void) |
216 | { | 216 | { |
217 | struct proc_dir_entry *entry; | ||
218 | if (!proc_mkdir("tty", NULL)) | 217 | if (!proc_mkdir("tty", NULL)) |
219 | return; | 218 | return; |
220 | proc_tty_ldisc = proc_mkdir("tty/ldisc", NULL); | 219 | proc_tty_ldisc = proc_mkdir("tty/ldisc", NULL); |
@@ -227,7 +226,5 @@ void __init proc_tty_init(void) | |||
227 | proc_tty_driver = proc_mkdir_mode("tty/driver", S_IRUSR | S_IXUSR, NULL); | 226 | proc_tty_driver = proc_mkdir_mode("tty/driver", S_IRUSR | S_IXUSR, NULL); |
228 | 227 | ||
229 | create_proc_read_entry("tty/ldiscs", 0, NULL, tty_ldiscs_read_proc, NULL); | 228 | create_proc_read_entry("tty/ldiscs", 0, NULL, tty_ldiscs_read_proc, NULL); |
230 | entry = create_proc_entry("tty/drivers", 0, NULL); | 229 | proc_create("tty/drivers", 0, NULL, &proc_tty_drivers_operations); |
231 | if (entry) | ||
232 | entry->proc_fops = &proc_tty_drivers_operations; | ||
233 | } | 230 | } |