提交 464cad2c 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: emxx_udc: Use module_platform_driver

module_platform_driver removes some boiler plate and makes
code simpler.
Signed-off-by: NSachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a790ebc1
......@@ -3511,24 +3511,7 @@ static struct platform_driver udc_driver = {
},
};
/*-------------------------------------------------------------------------*/
/* module */
/*-------------------------------------------------------------------------*/
static int __init udc_init(void)
{
return platform_driver_register(&udc_driver);
}
module_init(udc_init);
/*-------------------------------------------------------------------------*/
static void __exit udc_exit(void)
{
platform_driver_unregister(&udc_driver);
}
module_exit(udc_exit);
module_platform_driver(udc_driver);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_AUTHOR("Renesas Electronics Corporation");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部