]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
atm: assign PDE->data before gluing PDE into /proc tree
authorDenis V. Lunev <den@openvz.org>
Fri, 2 May 2008 11:08:30 +0000 (04:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 11:08:30 +0000 (04:08 -0700)
Simply replace proc_create and further data assigned with proc_create_data.
proc_atm_dev_ops holds proper referrence.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/proc.c

index 5c9f3d148135d2d6a4d1403a3a046ebfa6f3e0e1..49487b313f221cf6394fa2c918fc67858ae1f45f 100644 (file)
@@ -417,12 +417,10 @@ int atm_proc_dev_register(struct atm_dev *dev)
                goto err_out;
        sprintf(dev->proc_name,"%s:%d",dev->type, dev->number);
 
-       dev->proc_entry = proc_create(dev->proc_name, 0, atm_proc_root,
-                                     &proc_atm_dev_ops);
+       dev->proc_entry = proc_create_data(dev->proc_name, 0, atm_proc_root,
+                                          &proc_atm_dev_ops, dev);
        if (!dev->proc_entry)
                goto err_free_name;
-       dev->proc_entry->data = dev;
-       dev->proc_entry->owner = THIS_MODULE;
        return 0;
 err_free_name:
        kfree(dev->proc_name);