Commit b3c27429 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: [clip] delay /proc/net/atm/arp creation

parent 80265bb3
...@@ -994,14 +994,6 @@ static struct file_operations arp_seq_fops = { ...@@ -994,14 +994,6 @@ static struct file_operations arp_seq_fops = {
static int __init atm_clip_init(void) 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() */ /* we should use neigh_table_init() */
clip_tbl.lock = RW_LOCK_UNLOCKED; clip_tbl.lock = RW_LOCK_UNLOCKED;
clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id, clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id,
...@@ -1019,6 +1011,16 @@ static int __init atm_clip_init(void) ...@@ -1019,6 +1011,16 @@ static int __init atm_clip_init(void)
clip_tbl_hook = &clip_tbl; clip_tbl_hook = &clip_tbl;
register_atm_ioctl(&clip_ioctl_ops); 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment