Skip to content

Commit

Permalink
Staging: hv: vmbus: Get rid of vmbus_acpi_init() by inlining the code
Browse files Browse the repository at this point in the history
Staging: hv: vmbus: Get rid of  vmbus_acpi_init() by inlining the code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 607c1a1 commit 0246604
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 0246604

Please sign in to comment.