]> git.neil.brown.name Git - history.git/commitdiff
[ATM]: [clip] delay /proc/net/atm/arp creation
authorChas Williams <chas@cmf.nrl.navy.mil>
Wed, 11 Feb 2004 14:02:27 +0000 (06:02 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 11 Feb 2004 14:02:27 +0000 (06:02 -0800)
net/atm/clip.c

index e6971cd6213ac612cee5ef909235b92bbe70ec18..bce7ef35a20c87e7e9dc8fb0896465c6b69123b4 100644 (file)
@@ -994,14 +994,6 @@ static struct file_operations arp_seq_fops = {
 
 static int __init atm_clip_init(void)
 {
-#ifdef CONFIG_PROC_FS
-       struct proc_dir_entry *p;
-
-       p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
-       if (p)
-               p->proc_fops = &arp_seq_fops;
-#endif
-
        /* we should use neigh_table_init() */
        clip_tbl.lock = RW_LOCK_UNLOCKED;
        clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id,
@@ -1019,6 +1011,16 @@ static int __init atm_clip_init(void)
        clip_tbl_hook = &clip_tbl;
        register_atm_ioctl(&clip_ioctl_ops);
 
+#ifdef CONFIG_PROC_FS
+{
+       struct proc_dir_entry *p;
+
+       p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
+       if (p)
+               p->proc_fops = &arp_seq_fops;
+}
+#endif
+
        return 0;
 }