提交 b4a46676 编写于 作者: T Tobias Klauser 提交者: David S. Miller

net: ethernet: xilinx: Convert xilinx_axienet to module_platform_driver

Follow commit db62f684. Convert the driver to use the
module_platform_driver() macro which makes the code a bit smaller and
simpler.
Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 95f2054f
......@@ -1662,18 +1662,7 @@ static struct platform_driver axienet_of_driver = {
},
};
static int __init axienet_init(void)
{
return platform_driver_register(&axienet_of_driver);
}
static void __exit axienet_exit(void)
{
platform_driver_unregister(&axienet_of_driver);
}
module_init(axienet_init);
module_exit(axienet_exit);
module_platform_driver(axienet_of_driver);
MODULE_DESCRIPTION("Xilinx Axi Ethernet driver");
MODULE_AUTHOR("Xilinx");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册