提交 a084ab33 编写于 作者: W Wei Yongjun 提交者: David S. Miller

net: dsa: qca8k: use mdio_module_driver to simplify the code

mdio_module_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 fcfbfd68
...@@ -1032,19 +1032,7 @@ static struct mdio_driver qca8kmdio_driver = { ...@@ -1032,19 +1032,7 @@ static struct mdio_driver qca8kmdio_driver = {
}, },
}; };
static int __init mdio_module_driver(qca8kmdio_driver);
qca8kmdio_driver_register(void)
{
return mdio_driver_register(&qca8kmdio_driver);
}
module_init(qca8kmdio_driver_register);
static void __exit
qca8kmdio_driver_unregister(void)
{
mdio_driver_unregister(&qca8kmdio_driver);
}
module_exit(qca8kmdio_driver_unregister);
MODULE_AUTHOR("Mathieu Olivari, John Crispin <john@phrozen.org>"); MODULE_AUTHOR("Mathieu Olivari, John Crispin <john@phrozen.org>");
MODULE_DESCRIPTION("Driver for QCA8K ethernet switch family"); MODULE_DESCRIPTION("Driver for QCA8K ethernet switch family");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册