[ATM]: Use proc_create() to setup ->proc_fops first

Use proc_create() to make sure that ->proc_fops be setup before gluing
PDE to main tree.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Wang Chen
2008-02-28 13:55:45 -08:00
committed by David S. Miller
parent ed2b5b474e
commit 16e297b358
5 changed files with 9 additions and 14 deletions

View File

@@ -962,9 +962,7 @@ static int __init atm_clip_init(void)
{
struct proc_dir_entry *p;
p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
if (p)
p->proc_fops = &arp_seq_fops;
p = proc_create("arp", S_IRUGO, atm_proc_root, &arp_seq_fops);
}
#endif