提交 0246604c 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: vmbus: Get rid of vmbus_acpi_init() by inlining the code

Staging: hv: vmbus: Get rid of  vmbus_acpi_init() by inlining the code.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 607c1a11
......@@ -758,18 +758,6 @@ static struct acpi_driver vmbus_acpi_driver = {
},
};
static int vmbus_acpi_init(void)
{
int result;
result = acpi_bus_register_driver(&vmbus_acpi_driver);
if (result < 0)
return result;
return 0;
}
static void vmbus_acpi_exit(void)
{
acpi_bus_unregister_driver(&vmbus_acpi_driver);
......@@ -800,7 +788,8 @@ static int __init hv_acpi_init(void)
* Get irq resources first.
*/
ret = vmbus_acpi_init();
ret = acpi_bus_register_driver(&vmbus_acpi_driver);
if (ret)
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册