summaryrefslogtreecommitdiffstats
path: root/misc-modules/seq.c
diff options
context:
space:
mode:
authorhwangcc <hwangcc@csie.nctu.edu.tw>2015-01-06 11:55:28 +0800
committerJavier Martinez Canillas <javier@dowhile0.org>2018-02-25 01:57:18 +0100
commita5939c09225060d389727e79213f9295da410f07 (patch)
tree36b7ac231d1b7686c99063011e7d0bb9031867d4 /misc-modules/seq.c
parent85b32eb844a3d83c974fe86bdc1b792630830d4e (diff)
downloadldd3-a5939c09225060d389727e79213f9295da410f07.tar.gz
seq.c: Don't use create_proc_entry
Don't use create_proc_entry as that is deprecated, but rather use proc_create instead. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
Diffstat (limited to 'misc-modules/seq.c')
-rw-r--r--misc-modules/seq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/misc-modules/seq.c b/misc-modules/seq.c
index 59026a5..146615a 100644
--- a/misc-modules/seq.c
+++ b/misc-modules/seq.c
@@ -94,9 +94,7 @@ static int ct_init(void)
{
struct proc_dir_entry *entry;
- entry = create_proc_entry("sequence", 0, NULL);
- if (entry)
- entry->proc_fops = &ct_file_ops;
+ entry = proc_create("sequence", 0, NULL, &ct_file_ops);
return 0;
}