diff options
Diffstat (limited to 'crypto/proc.c')
-rw-r--r-- | crypto/proc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/proc.c b/crypto/proc.c index 3d73323ff79b..02ff5670c158 100644 --- a/crypto/proc.c +++ b/crypto/proc.c | |||
@@ -78,7 +78,7 @@ static int c_show(struct seq_file *m, void *p) | |||
78 | return 0; | 78 | return 0; |
79 | } | 79 | } |
80 | 80 | ||
81 | static struct seq_operations crypto_seq_ops = { | 81 | static const struct seq_operations crypto_seq_ops = { |
82 | .start = c_start, | 82 | .start = c_start, |
83 | .next = c_next, | 83 | .next = c_next, |
84 | .stop = c_stop, | 84 | .stop = c_stop, |
@@ -99,11 +99,7 @@ static const struct file_operations proc_crypto_ops = { | |||
99 | 99 | ||
100 | void __init crypto_init_proc(void) | 100 | void __init crypto_init_proc(void) |
101 | { | 101 | { |
102 | struct proc_dir_entry *proc; | 102 | proc_create("crypto", 0, NULL, &proc_crypto_ops); |
103 | |||
104 | proc = create_proc_entry("crypto", 0, NULL); | ||
105 | if (proc) | ||
106 | proc->proc_fops = &proc_crypto_ops; | ||
107 | } | 103 | } |
108 | 104 | ||
109 | void __exit crypto_exit_proc(void) | 105 | void __exit crypto_exit_proc(void) |