Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236542
b: refs/heads/master
c: 3ca07cb
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent f2c1083 commit 586d998
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: ece0e32fd2870f7d2b2f28a99f8e63bef3c01686
refs/heads/master: 3ca07cb06d3176b3eb1bfd49fdc8c8fbe649fa5b
7 changes: 3 additions & 4 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static struct hv_device *vmbus_device; /* vmbus root device */
*/
int vmbus_child_dev_add(struct hv_device *child_dev)
{
return vmbus_child_device_register(vmbus_device, child_dev);
return vmbus_child_device_register(child_dev);
}

/*
Expand Down Expand Up @@ -664,8 +664,7 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *type,
/*
* vmbus_child_device_register - Register the child device on the specified bus
*/
int vmbus_child_device_register(struct hv_device *root_device_obj,
struct hv_device *child_device_obj)
int vmbus_child_device_register(struct hv_device *child_device_obj)
{
int ret = 0;

Expand All @@ -680,7 +679,7 @@ int vmbus_child_device_register(struct hv_device *root_device_obj,

/* The new device belongs to this bus */
child_device_obj->device.bus = &vmbus_drv.bus; /* device->dev.bus; */
child_device_obj->device.parent = &root_device_obj->device;
child_device_obj->device.parent = &vmbus_device->device;
child_device_obj->device.release = vmbus_device_release;

/*
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/hv/vmbus_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *type,
struct vmbus_channel *channel);

int vmbus_child_dev_add(struct hv_device *device);
int vmbus_child_device_register(struct hv_device *root_device_obj,
struct hv_device *child_device_obj);
int vmbus_child_device_register(struct hv_device *child_device_obj);
void vmbus_child_device_unregister(struct hv_device *device_obj);

/* static void */
Expand Down

0 comments on commit 586d998

Please sign in to comment.