aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 6191e633728..41430baa132 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4888,6 +4888,7 @@ static int __net_init bond_net_init(struct net *net)
4888 INIT_LIST_HEAD(&bn->dev_list); 4888 INIT_LIST_HEAD(&bn->dev_list);
4889 4889
4890 bond_create_proc_dir(bn); 4890 bond_create_proc_dir(bn);
4891 bond_create_sysfs(bn);
4891 4892
4892 return 0; 4893 return 0;
4893} 4894}
@@ -4896,6 +4897,7 @@ static void __net_exit bond_net_exit(struct net *net)
4896{ 4897{
4897 struct bond_net *bn = net_generic(net, bond_net_id); 4898 struct bond_net *bn = net_generic(net, bond_net_id);
4898 4899
4900 bond_destroy_sysfs(bn);
4899 bond_destroy_proc_dir(bn); 4901 bond_destroy_proc_dir(bn);
4900} 4902}
4901 4903
@@ -4933,10 +4935,6 @@ static int __init bonding_init(void)
4933 goto err; 4935 goto err;
4934 } 4936 }
4935 4937
4936 res = bond_create_sysfs();
4937 if (res)
4938 goto err;
4939
4940 register_netdevice_notifier(&bond_netdev_notifier); 4938 register_netdevice_notifier(&bond_netdev_notifier);
4941 register_inetaddr_notifier(&bond_inetaddr_notifier); 4939 register_inetaddr_notifier(&bond_inetaddr_notifier);
4942out: 4940out:
@@ -4954,7 +4952,6 @@ static void __exit bonding_exit(void)
4954 unregister_netdevice_notifier(&bond_netdev_notifier); 4952 unregister_netdevice_notifier(&bond_netdev_notifier);
4955 unregister_inetaddr_notifier(&bond_inetaddr_notifier); 4953 unregister_inetaddr_notifier(&bond_inetaddr_notifier);
4956 4954
4957 bond_destroy_sysfs();
4958 bond_destroy_debugfs(); 4955 bond_destroy_debugfs();
4959 4956
4960 rtnl_link_unregister(&bond_link_ops); 4957 rtnl_link_unregister(&bond_link_ops);