diff options
Diffstat (limited to 'drivers/isdn/divert/divert_procfs.c')
-rw-r--r-- | drivers/isdn/divert/divert_procfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/isdn/divert/divert_procfs.c b/drivers/isdn/divert/divert_procfs.c index 4fd4c46892e3..8b256a617c8a 100644 --- a/drivers/isdn/divert/divert_procfs.c +++ b/drivers/isdn/divert/divert_procfs.c | |||
@@ -288,13 +288,12 @@ divert_dev_init(void) | |||
288 | isdn_proc_entry = proc_mkdir("isdn", init_net.proc_net); | 288 | isdn_proc_entry = proc_mkdir("isdn", init_net.proc_net); |
289 | if (!isdn_proc_entry) | 289 | if (!isdn_proc_entry) |
290 | return (-1); | 290 | return (-1); |
291 | isdn_divert_entry = create_proc_entry("divert", S_IFREG | S_IRUGO, isdn_proc_entry); | 291 | isdn_divert_entry = proc_create("divert", S_IFREG | S_IRUGO, |
292 | isdn_proc_entry, &isdn_fops); | ||
292 | if (!isdn_divert_entry) { | 293 | if (!isdn_divert_entry) { |
293 | remove_proc_entry("isdn", init_net.proc_net); | 294 | remove_proc_entry("isdn", init_net.proc_net); |
294 | return (-1); | 295 | return (-1); |
295 | } | 296 | } |
296 | isdn_divert_entry->proc_fops = &isdn_fops; | ||
297 | isdn_divert_entry->owner = THIS_MODULE; | ||
298 | #endif /* CONFIG_PROC_FS */ | 297 | #endif /* CONFIG_PROC_FS */ |
299 | 298 | ||
300 | return (0); | 299 | return (0); |