提交 4d263536 编写于 作者: W Wei Yongjun 提交者: Matthew Garrett

x86: smartconnect: use module_acpi_driver to simplify the code

module_acpi_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
上级 aa3b88a3
...@@ -74,17 +74,6 @@ static struct acpi_driver smartconnect_driver = { ...@@ -74,17 +74,6 @@ static struct acpi_driver smartconnect_driver = {
}, },
}; };
static int smartconnect_init(void) module_acpi_driver(smartconnect_driver);
{
return acpi_bus_register_driver(&smartconnect_driver);
}
static void smartconnect_exit(void)
{
acpi_bus_unregister_driver(&smartconnect_driver);
}
module_init(smartconnect_init);
module_exit(smartconnect_exit);
MODULE_DEVICE_TABLE(acpi, smartconnect_ids); MODULE_DEVICE_TABLE(acpi, smartconnect_ids);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册