Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267625
b: refs/heads/master
c: 2dda95f
h: refs/heads/master
i:
  267623: 04d8fad
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 5a0f671 commit 6322fcc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab8ac090142daa3371217de98f8a00419f8c2670
refs/heads/master: 2dda95f80b2afa4bf85c6419f40e11b545cda422
19 changes: 14 additions & 5 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ MODULE_DEVICE_TABLE(pci, microsoft_hv_pci_table);

static int __init hv_acpi_init(void)
{
int ret;
int ret, t;

init_completion(&probe_event);

Expand All @@ -781,16 +781,25 @@ static int __init hv_acpi_init(void)
if (ret)
return ret;

wait_for_completion(&probe_event);
t = wait_for_completion_timeout(&probe_event, 5*HZ);
if (t == 0) {
ret = -ETIMEDOUT;
goto cleanup;
}

if (irq <= 0) {
acpi_bus_unregister_driver(&vmbus_acpi_driver);
return -ENODEV;
ret = -ENODEV;
goto cleanup;
}

ret = vmbus_bus_init(irq);
if (ret)
acpi_bus_unregister_driver(&vmbus_acpi_driver);
goto cleanup;

return 0;

cleanup:
acpi_bus_unregister_driver(&vmbus_acpi_driver);
return ret;
}

Expand Down

0 comments on commit 6322fcc

Please sign in to comment.