]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/atm/lec.c
[ATM]: Use proc_create() to setup ->proc_fops first
[net-next-2.6.git] / net / atm / lec.c
index 1a8c4c6c0cd054d928fd974ec33094b8586ec305..0e450d12f0358651d9fd5bb0ecada2461c7960f8 100644 (file)
@@ -1249,9 +1249,7 @@ static int __init lane_module_init(void)
 #ifdef CONFIG_PROC_FS
        struct proc_dir_entry *p;
 
-       p = create_proc_entry("lec", S_IRUGO, atm_proc_root);
-       if (p)
-               p->proc_fops = &lec_seq_fops;
+       p = proc_create("lec", S_IRUGO, atm_proc_root, &lec_seq_fops);
 #endif
 
        register_atm_ioctl(&lane_ioctl_ops);