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 = { ...@@ -1177,18 +1177,7 @@ static struct platform_driver ftmac100_driver = {
/****************************************************************************** /******************************************************************************
* initialization / finalization * initialization / finalization
*****************************************************************************/ *****************************************************************************/
static int __init ftmac100_init(void) module_platform_driver(ftmac100_driver);
{
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_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>"); MODULE_AUTHOR("Po-Yu Chuang <ratbert@faraday-tech.com>");
MODULE_DESCRIPTION("FTMAC100 driver"); 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