diff options
Diffstat (limited to 'net/dsa/dsa.c')
-rw-r--r-- | net/dsa/dsa.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 619e57a44d1d..beb79ccf0f59 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
@@ -903,10 +903,6 @@ static struct packet_type dsa_pack_type __read_mostly = { | |||
903 | .func = dsa_switch_rcv, | 903 | .func = dsa_switch_rcv, |
904 | }; | 904 | }; |
905 | 905 | ||
906 | static struct notifier_block dsa_netdevice_nb __read_mostly = { | ||
907 | .notifier_call = dsa_slave_netdevice_event, | ||
908 | }; | ||
909 | |||
910 | #ifdef CONFIG_PM_SLEEP | 906 | #ifdef CONFIG_PM_SLEEP |
911 | static int dsa_suspend(struct device *d) | 907 | static int dsa_suspend(struct device *d) |
912 | { | 908 | { |
@@ -964,7 +960,9 @@ static int __init dsa_init_module(void) | |||
964 | { | 960 | { |
965 | int rc; | 961 | int rc; |
966 | 962 | ||
967 | register_netdevice_notifier(&dsa_netdevice_nb); | 963 | rc = dsa_slave_register_notifier(); |
964 | if (rc) | ||
965 | return rc; | ||
968 | 966 | ||
969 | rc = platform_driver_register(&dsa_driver); | 967 | rc = platform_driver_register(&dsa_driver); |
970 | if (rc) | 968 | if (rc) |
@@ -978,7 +976,7 @@ module_init(dsa_init_module); | |||
978 | 976 | ||
979 | static void __exit dsa_cleanup_module(void) | 977 | static void __exit dsa_cleanup_module(void) |
980 | { | 978 | { |
981 | unregister_netdevice_notifier(&dsa_netdevice_nb); | 979 | dsa_slave_unregister_notifier(); |
982 | dev_remove_pack(&dsa_pack_type); | 980 | dev_remove_pack(&dsa_pack_type); |
983 | platform_driver_unregister(&dsa_driver); | 981 | platform_driver_unregister(&dsa_driver); |
984 | } | 982 | } |