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/br2684.c | |
parent | ed2b5b474e853fe2f9a9988f2871051291779d90 (diff) | |
download | linux-3.10-16e297b35811c53288b35e15a5823fd8534c6d21.tar.gz linux-3.10-16e297b35811c53288b35e15a5823fd8534c6d21.tar.bz2 linux-3.10-16e297b35811c53288b35e15a5823fd8534c6d21.zip |
[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/br2684.c')
-rw-r--r-- | net/atm/br2684.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 574d9a96417..1b228065e74 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c @@ -742,9 +742,9 @@ static int __init br2684_init(void) { #ifdef CONFIG_PROC_FS struct proc_dir_entry *p; - if ((p = create_proc_entry("br2684", 0, atm_proc_root)) == NULL) + p = proc_create("br2684", 0, atm_proc_root, &br2684_proc_ops); + if (p == NULL) return -ENOMEM; - p->proc_fops = &br2684_proc_ops; #endif register_atm_ioctl(&br2684_ioctl_ops); return 0; |