提交 7a620a65 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: xillybus: Use module_platform_driver

module_platform_driver simplifies the code by removing the boilerplate.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 47052577
......@@ -198,15 +198,4 @@ static struct platform_driver xillybus_platform_driver = {
},
};
static int __init xillybus_of_init(void)
{
return platform_driver_register(&xillybus_platform_driver);
}
static void __exit xillybus_of_exit(void)
{
platform_driver_unregister(&xillybus_platform_driver);
}
module_init(xillybus_of_init);
module_exit(xillybus_of_exit);
module_platform_driver(xillybus_platform_driver);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册