提交 1fffc8b2 编写于 作者: S Sachin Kamat 提交者: Kukjin Kim

ARM: S3C24XX: Use module_platform_driver macro in h1940-bluetooth.c

module_platform_driver simplifies the code by eliminating
module_init and module_exit calls.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 4e321a39
...@@ -138,19 +138,7 @@ static struct platform_driver h1940bt_driver = { ...@@ -138,19 +138,7 @@ static struct platform_driver h1940bt_driver = {
.remove = h1940bt_remove, .remove = h1940bt_remove,
}; };
module_platform_driver(h1940bt_driver);
static int __init h1940bt_init(void)
{
return platform_driver_register(&h1940bt_driver);
}
static void __exit h1940bt_exit(void)
{
platform_driver_unregister(&h1940bt_driver);
}
module_init(h1940bt_init);
module_exit(h1940bt_exit);
MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
MODULE_DESCRIPTION("Driver for the iPAQ H1940 bluetooth chip"); MODULE_DESCRIPTION("Driver for the iPAQ H1940 bluetooth chip");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册