Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /net/atm/mpoa_proc.c

Filename:/net/atm/mpoa_proc.c
Lines Added:1
Lines Deleted:2
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3-git6  2.6.25-rc3-git5  2.6.25-rc3-git4 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25 

Location
[  2.6.25-rc7
  [  net
    [  atm
       o  mpoa_proc.c

Patch

diff --git a/net/atm/mpoa_proc.c b/net/atm/mpoa_proc.c
index 91f3ffc..4990541 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;
 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.