diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-19 14:25:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-21 00:46:00 +0300 |
commit | 459421cc81eb4cdca96ef2c2b532359c6daa9002 (patch) | |
tree | 4f936fd795e1a1e87d3e57afac2f204c527029fa /drivers/net/wan | |
parent | 9d5658e65c4dd33e87dcff979a7b68ecab600d5d (diff) | |
download | linux-459421cc81eb4cdca96ef2c2b532359c6daa9002.tar.xz |
wan/fsl_ucc_hdlc: use module_platform_driver to simplify the code
module_platform_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/fsl_ucc_hdlc.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 10ca49797e34..2fc50ec453d0 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -1174,15 +1174,4 @@ static struct platform_driver ucc_hdlc_driver = { }, }; -static int __init ucc_hdlc_init(void) -{ - return platform_driver_register(&ucc_hdlc_driver); -} - -static void __exit ucc_hdlc_exit(void) -{ - platform_driver_unregister(&ucc_hdlc_driver); -} - -module_init(ucc_hdlc_init); -module_exit(ucc_hdlc_exit); +module_platform_driver(ucc_hdlc_driver); |