提交 d280a2c2 编写于 作者: Z Zhichao Cai 提交者: David S. Miller

Simplify the code by using module_platform_driver macro

for ftmac100
Signed-off-by: NZhichao Cai <caizhichao@yulong.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 69cdfb53
......@@ -1177,18 +1177,7 @@ static struct platform_driver ftmac100_driver = {
/******************************************************************************
* initialization / finalization
*****************************************************************************/
static int __init ftmac100_init(void)
{
return platform_driver_register(&ftmac100_driver);
}
static void __exit ftmac100_exit(void)
{
platform_driver_unregister(&ftmac100_driver);
}
module_init(ftmac100_init);
module_exit(ftmac100_exit);
module_platform_driver(ftmac100_driver);
MODULE_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>");
MODULE_DESCRIPTION("FTMAC100 driver");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册