summaryrefslogtreecommitdiff
path: root/net/atm/mpoa_proc.c
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-02-28 13:55:45 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-28 13:55:45 -0800
commit16e297b35811c53288b35e15a5823fd8534c6d21 (patch)
tree638b371738c214f933d121da13708f52e9d6f399 /net/atm/mpoa_proc.c
parented2b5b474e853fe2f9a9988f2871051291779d90 (diff)
downloadlwn-16e297b35811c53288b35e15a5823fd8534c6d21.tar.gz
lwn-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/mpoa_proc.c')
-rw-r--r--net/atm/mpoa_proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/atm/mpoa_proc.c b/net/atm/mpoa_proc.c
index 91f3ffc90dbd..4990541ef5da 100644
--- a/net/atm/mpoa_proc.c
+++ b/net/atm/mpoa_proc.c
@@ -276,12 +276,11 @@ int mpc_proc_init(void)
{
struct proc_dir_entry *p;
- p = create_proc_entry(STAT_FILE_NAME, 0, atm_proc_root);
+ p = proc_create(STAT_FILE_NAME, 0, atm_proc_root, &mpc_file_operations);
if (!p) {
printk(KERN_ERR "Unable to initialize /proc/atm/%s\n", STAT_FILE_NAME);
return -ENOMEM;
}
- p->proc_fops = &mpc_file_operations;
p->owner = THIS_MODULE;
return 0;
}