Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236324
b: refs/heads/master
c: 70b0af4
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent 5c44b1b commit ab96d62
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 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: a3c7fe9a333516a14b34cf57684e864ecd2145ce
refs/heads/master: 70b0af4f52b3da6aeac2bd03221217beff4746a1
1 change: 0 additions & 1 deletion trunk/drivers/staging/hv/vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
struct vm_device {
struct hv_guid class_id;
struct hv_guid device_id;
int probe_error;
struct hv_device device_obj;
struct device device;
};
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/staging/hv/vmbus_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ struct hv_device {

struct work_struct probe_failed_work_item;

int probe_error;

/* the device type id of this device */
struct hv_guid dev_type;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ int vmbus_child_device_register(struct hv_device *root_device_obj,
ret = device_register(&child_device_ctx->device);

/* vmbus_probe() error does not get propergate to device_register(). */
ret = child_device_ctx->probe_error;
ret = child_device_ctx->device_obj.probe_error;

if (ret)
DPRINT_ERR(VMBUS_DRV, "unable to register child device (%p)",
Expand Down Expand Up @@ -908,7 +908,7 @@ static int vmbus_probe(struct device *child_device)

/* Let the specific open-source driver handles the probe if it can */
if (drv->driver.probe) {
ret = device_ctx->probe_error =
ret = device_ctx->device_obj.probe_error =
drv->driver.probe(child_device);
if (ret != 0) {
DPRINT_ERR(VMBUS_DRV, "probe() failed for device %s "
Expand Down

0 comments on commit ab96d62

Please sign in to comment.