提交 14f645d0 编写于 作者: S Sachin Kamat 提交者: David S. Miller

net: ftgmac100: Use module_platform_driver()

module_platform_driver macro removes some boilerplate and makes
the code simpler.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Cc: Po-Yu Chuang <ratbert@faraday-tech.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e827c122
......@@ -1349,22 +1349,7 @@ static struct platform_driver ftgmac100_driver = {
},
};
/******************************************************************************
* initialization / finalization
*****************************************************************************/
static int __init ftgmac100_init(void)
{
pr_info("Loading version " DRV_VERSION " ...\n");
return platform_driver_register(&ftgmac100_driver);
}
static void __exit ftgmac100_exit(void)
{
platform_driver_unregister(&ftgmac100_driver);
}
module_init(ftgmac100_init);
module_exit(ftgmac100_exit);
module_platform_driver(ftgmac100_driver);
MODULE_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>");
MODULE_DESCRIPTION("FTGMAC100 driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册