[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190418023120.17067-10-andrew@lunn.ch>
Date: Thu, 18 Apr 2019 04:31:14 +0200
From: Andrew Lunn <andrew@...n.ch>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
Florian Fainelli <f.fainelli@...il.com>,
Vivien Didelot <vivien.didelot@...il.com>,
Andrew Lunn <andrew@...n.ch>
Subject: [PATCH net-next 09/15] dsa: Register the none tagger ops
The none tagger is special in that it does not live in a tag_*.c file,
but is within the core. Register/unregister when DSA is
loaded/unloaded.
Signed-off-by: Andrew Lunn <andrew@...n.ch>
---
net/dsa/dsa.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 861fe1441a7d..a91c5ac86d86 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -358,12 +358,16 @@ static int __init dsa_init_module(void)
dev_add_pack(&dsa_pack_type);
+ dsa_tag_driver_register(&none_ops, THIS_MODULE);
+
return 0;
}
module_init(dsa_init_module);
static void __exit dsa_cleanup_module(void)
{
+ dsa_tag_driver_unregister(&none_ops);
+
dsa_slave_unregister_notifier();
dev_remove_pack(&dsa_pack_type);
dsa_legacy_unregister();
--
2.20.1
Powered by blists - more mailing lists