Commit d280a2c2 authored by Zhichao Cai's avatar Zhichao Cai Committed by David S. Miller

Simplify the code by using module_platform_driver macro

for ftmac100
Signed-off-by: default avatarZhichao Cai <caizhichao@yulong.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment