diff options
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r-- | net/netrom/af_netrom.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 7261eb81974f..297b07a029de 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1452,9 +1452,9 @@ static int __init nr_proto_init(void) | |||
1452 | 1452 | ||
1453 | nr_loopback_init(); | 1453 | nr_loopback_init(); |
1454 | 1454 | ||
1455 | proc_net_fops_create(&init_net, "nr", S_IRUGO, &nr_info_fops); | 1455 | proc_create("nr", S_IRUGO, init_net.proc_net, &nr_info_fops); |
1456 | proc_net_fops_create(&init_net, "nr_neigh", S_IRUGO, &nr_neigh_fops); | 1456 | proc_create("nr_neigh", S_IRUGO, init_net.proc_net, &nr_neigh_fops); |
1457 | proc_net_fops_create(&init_net, "nr_nodes", S_IRUGO, &nr_nodes_fops); | 1457 | proc_create("nr_nodes", S_IRUGO, init_net.proc_net, &nr_nodes_fops); |
1458 | out: | 1458 | out: |
1459 | return rc; | 1459 | return rc; |
1460 | fail: | 1460 | fail: |
@@ -1482,9 +1482,9 @@ static void __exit nr_exit(void) | |||
1482 | { | 1482 | { |
1483 | int i; | 1483 | int i; |
1484 | 1484 | ||
1485 | proc_net_remove(&init_net, "nr"); | 1485 | remove_proc_entry("nr", init_net.proc_net); |
1486 | proc_net_remove(&init_net, "nr_neigh"); | 1486 | remove_proc_entry("nr_neigh", init_net.proc_net); |
1487 | proc_net_remove(&init_net, "nr_nodes"); | 1487 | remove_proc_entry("nr_nodes", init_net.proc_net); |
1488 | nr_loopback_clear(); | 1488 | nr_loopback_clear(); |
1489 | 1489 | ||
1490 | nr_rt_free(); | 1490 | nr_rt_free(); |