diff options
Diffstat (limited to 'fs/proc/cmdline.c')
-rw-r--r-- | fs/proc/cmdline.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/proc/cmdline.c b/fs/proc/cmdline.c index 8233e7af9389..fa762c5fbcb2 100644 --- a/fs/proc/cmdline.c +++ b/fs/proc/cmdline.c | |||
@@ -11,21 +11,9 @@ static int cmdline_proc_show(struct seq_file *m, void *v) | |||
11 | return 0; | 11 | return 0; |
12 | } | 12 | } |
13 | 13 | ||
14 | static int cmdline_proc_open(struct inode *inode, struct file *file) | ||
15 | { | ||
16 | return single_open(file, cmdline_proc_show, NULL); | ||
17 | } | ||
18 | |||
19 | static const struct file_operations cmdline_proc_fops = { | ||
20 | .open = cmdline_proc_open, | ||
21 | .read = seq_read, | ||
22 | .llseek = seq_lseek, | ||
23 | .release = single_release, | ||
24 | }; | ||
25 | |||
26 | static int __init proc_cmdline_init(void) | 14 | static int __init proc_cmdline_init(void) |
27 | { | 15 | { |
28 | proc_create("cmdline", 0, NULL, &cmdline_proc_fops); | 16 | proc_create_single("cmdline", 0, NULL, cmdline_proc_show); |
29 | return 0; | 17 | return 0; |
30 | } | 18 | } |
31 | fs_initcall(proc_cmdline_init); | 19 | fs_initcall(proc_cmdline_init); |