diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-02-28 13:55:45 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-28 13:55:45 -0800 |
commit | 16e297b35811c53288b35e15a5823fd8534c6d21 (patch) | |
tree | 638b371738c214f933d121da13708f52e9d6f399 /net/atm/clip.c | |
parent | ed2b5b474e853fe2f9a9988f2871051291779d90 (diff) | |
download | op-kernel-dev-16e297b35811c53288b35e15a5823fd8534c6d21.zip op-kernel-dev-16e297b35811c53288b35e15a5823fd8534c6d21.tar.gz |
[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>
Diffstat (limited to 'net/atm/clip.c')
-rw-r--r-- | net/atm/clip.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c index 86b885e..d30167c 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c @@ -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 |