diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2010-01-16 22:35:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-17 22:16:02 -0500 |
commit | 2c8c1e7297e19bdef3c178c3ea41d898a7716e3e (patch) | |
tree | 4d336562e8d5379732a0646e17b0bb1750111ef6 /net/ipv4/igmp.c | |
parent | 72659ecce68588b74f6c46862c2b4cec137d7a5a (diff) |
net: spread __net_init, __net_exit
__net_init/__net_exit are apparently not going away, so use them
to full extent.
In some cases __net_init was removed, because it was called from
__net_exit code.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r-- | net/ipv4/igmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 76c08402c933..8f5468393f01 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
@@ -2603,7 +2603,7 @@ static const struct file_operations igmp_mcf_seq_fops = { | |||
2603 | .release = seq_release_net, | 2603 | .release = seq_release_net, |
2604 | }; | 2604 | }; |
2605 | 2605 | ||
2606 | static int igmp_net_init(struct net *net) | 2606 | static int __net_init igmp_net_init(struct net *net) |
2607 | { | 2607 | { |
2608 | struct proc_dir_entry *pde; | 2608 | struct proc_dir_entry *pde; |
2609 | 2609 | ||
@@ -2621,7 +2621,7 @@ out_igmp: | |||
2621 | return -ENOMEM; | 2621 | return -ENOMEM; |
2622 | } | 2622 | } |
2623 | 2623 | ||
2624 | static void igmp_net_exit(struct net *net) | 2624 | static void __net_exit igmp_net_exit(struct net *net) |
2625 | { | 2625 | { |
2626 | proc_net_remove(net, "mcfilter"); | 2626 | proc_net_remove(net, "mcfilter"); |
2627 | proc_net_remove(net, "igmp"); | 2627 | proc_net_remove(net, "igmp"); |