diff options
author | Zhichao Cai <caizhichao@yulong.com> | 2021-03-24 05:30:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-25 03:50:36 +0300 |
commit | d280a2c2b740ed6d90827004625e605c0a06a696 (patch) | |
tree | 06558640643d4493b973128f6cffd5e07b0b404c /drivers/net/ethernet/faraday | |
parent | 69cdfb530f7b8b094e49555454869afc8140b1bb (diff) | |
download | linux-d280a2c2b740ed6d90827004625e605c0a06a696.tar.xz |
Simplify the code by using module_platform_driver macro
for ftmac100
Signed-off-by: Zhichao Cai <caizhichao@yulong.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday')
-rw-r--r-- | drivers/net/ethernet/faraday/ftmac100.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index 473b337b2e3b..5a1a8f2ea63c 100644 --- a/drivers/net/ethernet/faraday/ftmac100.c +++ b/drivers/net/ethernet/faraday/ftmac100.c @@ -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"); |