diff options
| -rw-r--r-- | net/dsa/dsa.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 32778df1be27..71907acd8f82 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
| @@ -44,6 +44,8 @@ static const struct dsa_device_ops none_ops = { | |||
| 44 | .rcv = NULL, | 44 | .rcv = NULL, |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | DSA_TAG_DRIVER(none_ops); | ||
| 48 | |||
| 47 | const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = { | 49 | const struct dsa_device_ops *dsa_device_ops[DSA_TAG_LAST] = { |
| 48 | #ifdef CONFIG_NET_DSA_TAG_BRCM | 50 | #ifdef CONFIG_NET_DSA_TAG_BRCM |
| 49 | [DSA_TAG_PROTO_BRCM] = &brcm_netdev_ops, | 51 | [DSA_TAG_PROTO_BRCM] = &brcm_netdev_ops, |
| @@ -352,12 +354,17 @@ static int __init dsa_init_module(void) | |||
| 352 | 354 | ||
| 353 | dev_add_pack(&dsa_pack_type); | 355 | dev_add_pack(&dsa_pack_type); |
| 354 | 356 | ||
| 357 | dsa_tag_driver_register(&DSA_TAG_DRIVER_NAME(none_ops), | ||
| 358 | THIS_MODULE); | ||
| 359 | |||
| 355 | return 0; | 360 | return 0; |
| 356 | } | 361 | } |
| 357 | module_init(dsa_init_module); | 362 | module_init(dsa_init_module); |
| 358 | 363 | ||
| 359 | static void __exit dsa_cleanup_module(void) | 364 | static void __exit dsa_cleanup_module(void) |
| 360 | { | 365 | { |
| 366 | dsa_tag_driver_unregister(&DSA_TAG_DRIVER_NAME(none_ops)); | ||
| 367 | |||
| 361 | dsa_slave_unregister_notifier(); | 368 | dsa_slave_unregister_notifier(); |
| 362 | dev_remove_pack(&dsa_pack_type); | 369 | dev_remove_pack(&dsa_pack_type); |
| 363 | dsa_legacy_unregister(); | 370 | dsa_legacy_unregister(); |
