Skip to content

Commit

Permalink
Staging: hv: vmbus: Rename vmbus_child_device_unregister
Browse files Browse the repository at this point in the history
The vmbus devices are NOT child devices; rename vmbus_child_device_unregister
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 2279428 commit 696453b
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 @@ -333,7 +333,7 @@ static void vmbus_process_rescind_offer(struct work_struct *work)
struct vmbus_channel,
work);

vmbus_child_device_unregister(channel->device_obj);
vmbus_device_unregister(channel->device_obj);
}

/*
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 @@ -606,7 +606,7 @@ struct hv_device *vmbus_device_create(uuid_le *type,
struct vmbus_channel *channel);

int vmbus_device_register(struct hv_device *child_device_obj);
void vmbus_child_device_unregister(struct hv_device *device_obj);
void vmbus_device_unregister(struct hv_device *device_obj);

/* static void */
/* VmbusChildDeviceDestroy( */
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 @@ -650,10 +650,10 @@ int vmbus_device_register(struct hv_device *child_device_obj)
}

/*
* vmbus_child_device_unregister - Remove the specified child device
* vmbus_device_unregister - Remove the specified child device
* from the vmbus.
*/
void vmbus_child_device_unregister(struct hv_device *device_obj)
void vmbus_device_unregister(struct hv_device *device_obj)
{
/*
* Kick off the process of unregistering the device.
Expand Down

0 comments on commit 696453b

Please sign in to comment.