diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
commit | f969d69ba9f952e5bdd38278e25e26a3e4a61a70 (patch) | |
tree | b3530d803df59d726afaabebc6626987dee1ca05 /net/netrom | |
parent | a10ce7ef2066b455d69187643ddf2073bfc4db24 (diff) |
Merge with 2.3.27.
Diffstat (limited to 'net/netrom')
-rw-r--r-- | net/netrom/af_netrom.c | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index c6b3a84c9..3c219cdf0 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -1268,27 +1268,6 @@ static struct notifier_block nr_dev_notifier = { 0 }; -#ifdef CONFIG_PROC_FS -static struct proc_dir_entry proc_net_nr = { - PROC_NET_NR, 2, "nr", - S_IFREG | S_IRUGO, 1, 0, 0, - 0, &proc_net_inode_operations, - nr_get_info -}; -static struct proc_dir_entry proc_net_nr_neigh = { - PROC_NET_NR_NEIGH, 8, "nr_neigh", - S_IFREG | S_IRUGO, 1, 0, 0, - 0, &proc_net_inode_operations, - nr_neigh_get_info -}; -static struct proc_dir_entry proc_net_nr_nodes = { - PROC_NET_NR_NODES, 8, "nr_nodes", - S_IFREG | S_IRUGO, 1, 0, 0, - 0, &proc_net_inode_operations, - nr_nodes_get_info -}; -#endif - static struct net_device *dev_nr; void __init nr_proto_init(struct net_proto *pro) @@ -1328,9 +1307,9 @@ void __init nr_proto_init(struct net_proto *pro) nr_loopback_init(); #ifdef CONFIG_PROC_FS - proc_net_register(&proc_net_nr); - proc_net_register(&proc_net_nr_neigh); - proc_net_register(&proc_net_nr_nodes); + proc_net_create("nr", 0, nr_get_info); + proc_net_create("nr_neigh", 0, nr_neigh_get_info); + proc_net_create("nr_nodes", 0, nr_nodes_get_info); #endif } @@ -1355,9 +1334,9 @@ void cleanup_module(void) int i; #ifdef CONFIG_PROC_FS - proc_net_unregister(PROC_NET_NR); - proc_net_unregister(PROC_NET_NR_NEIGH); - proc_net_unregister(PROC_NET_NR_NODES); + proc_net_remove("nr"); + proc_net_remove("nr_neigh"); + proc_net_remove("nr_nodes"); #endif nr_loopback_clear(); |