From a5939c09225060d389727e79213f9295da410f07 Mon Sep 17 00:00:00 2001 From: hwangcc Date: Tue, 6 Jan 2015 11:55:28 +0800 Subject: 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 --- misc-modules/seq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'misc-modules/seq.c') 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; } -- cgit v1.2.1-18-gbd029