Skip to content

Commit

Permalink
Staging: hv: vmbus: Rename vmbus_child_device_create
Browse files Browse the repository at this point in the history
The vmbus devices are NOT child devices; rename vmbus_child_device_create
to reflect this.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Sep 9, 2011
1 parent 1707864 commit f2c7301
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ static void vmbus_process_offer(struct work_struct *work)
* We need to set the DeviceObject field before calling
* vmbus_child_dev_add()
*/
newchannel->device_obj = vmbus_child_device_create(
newchannel->device_obj = vmbus_device_create(
&newchannel->offermsg.offer.if_type,
&newchannel->offermsg.offer.if_instance,
newchannel);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/hyperv_vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ extern struct vmbus_connection vmbus_connection;

/* General vmbus interface */

struct hv_device *vmbus_child_device_create(uuid_le *type,
struct hv_device *vmbus_device_create(uuid_le *type,
uuid_le *instance,
struct vmbus_channel *channel);

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,10 +594,10 @@ void vmbus_driver_unregister(struct hv_driver *hv_driver)
EXPORT_SYMBOL_GPL(vmbus_driver_unregister);

/*
* vmbus_child_device_create - Creates and registers a new child device
* vmbus_device_create - Creates and registers a new child device
* on the vmbus.
*/
struct hv_device *vmbus_child_device_create(uuid_le *type,
struct hv_device *vmbus_device_create(uuid_le *type,
uuid_le *instance,
struct vmbus_channel *channel)
{
Expand Down

0 comments on commit f2c7301

Please sign in to comment.