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 /drivers/net/bonding/bond_main.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 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 6a42a1453afa..99a0ff3889ee 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -3307,7 +3307,7 @@ static void bond_remove_proc_entry(struct bonding *bond) | |||
3307 | /* Create the bonding directory under /proc/net, if doesn't exist yet. | 3307 | /* Create the bonding directory under /proc/net, if doesn't exist yet. |
3308 | * Caller must hold rtnl_lock. | 3308 | * Caller must hold rtnl_lock. |
3309 | */ | 3309 | */ |
3310 | static void bond_create_proc_dir(struct bond_net *bn) | 3310 | static void __net_init bond_create_proc_dir(struct bond_net *bn) |
3311 | { | 3311 | { |
3312 | if (!bn->proc_dir) { | 3312 | if (!bn->proc_dir) { |
3313 | bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); | 3313 | bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); |
@@ -3320,7 +3320,7 @@ static void bond_create_proc_dir(struct bond_net *bn) | |||
3320 | /* Destroy the bonding directory under /proc/net, if empty. | 3320 | /* Destroy the bonding directory under /proc/net, if empty. |
3321 | * Caller must hold rtnl_lock. | 3321 | * Caller must hold rtnl_lock. |
3322 | */ | 3322 | */ |
3323 | static void bond_destroy_proc_dir(struct bond_net *bn) | 3323 | static void __net_exit bond_destroy_proc_dir(struct bond_net *bn) |
3324 | { | 3324 | { |
3325 | if (bn->proc_dir) { | 3325 | if (bn->proc_dir) { |
3326 | remove_proc_entry(DRV_NAME, bn->net->proc_net); | 3326 | remove_proc_entry(DRV_NAME, bn->net->proc_net); |
@@ -3338,11 +3338,11 @@ static void bond_remove_proc_entry(struct bonding *bond) | |||
3338 | { | 3338 | { |
3339 | } | 3339 | } |
3340 | 3340 | ||
3341 | static void bond_create_proc_dir(struct bond_net *bn) | 3341 | static inline void bond_create_proc_dir(struct bond_net *bn) |
3342 | { | 3342 | { |
3343 | } | 3343 | } |
3344 | 3344 | ||
3345 | static void bond_destroy_proc_dir(struct bond_net *bn) | 3345 | static inline void bond_destroy_proc_dir(struct bond_net *bn) |
3346 | { | 3346 | { |
3347 | } | 3347 | } |
3348 | 3348 | ||
@@ -4955,7 +4955,7 @@ out_netdev: | |||
4955 | goto out; | 4955 | goto out; |
4956 | } | 4956 | } |
4957 | 4957 | ||
4958 | static int bond_net_init(struct net *net) | 4958 | static int __net_init bond_net_init(struct net *net) |
4959 | { | 4959 | { |
4960 | struct bond_net *bn = net_generic(net, bond_net_id); | 4960 | struct bond_net *bn = net_generic(net, bond_net_id); |
4961 | 4961 | ||
@@ -4967,7 +4967,7 @@ static int bond_net_init(struct net *net) | |||
4967 | return 0; | 4967 | return 0; |
4968 | } | 4968 | } |
4969 | 4969 | ||
4970 | static void bond_net_exit(struct net *net) | 4970 | static void __net_exit bond_net_exit(struct net *net) |
4971 | { | 4971 | { |
4972 | struct bond_net *bn = net_generic(net, bond_net_id); | 4972 | struct bond_net *bn = net_generic(net, bond_net_id); |
4973 | 4973 | ||