Commit 459421cc authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9d5658e6
......@@ -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);
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