Staging: hv: vmbus: Rename vmbus_child_device_unregister
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 8 Sep 2011 14:24:14 +0000 (07:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Sep 2011 20:45:39 +0000 (13:45 -0700)
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>
drivers/staging/hv/channel_mgmt.c
drivers/staging/hv/hyperv_vmbus.h
drivers/staging/hv/vmbus_drv.c

index a9270467bb99a993302b6a945169cc7a3e0b6e30..60ce1d1492fe40160d773c025242f358c895f80b 100644 (file)
@@ -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);
 }
 
 /*
index b2dfcd650f18c818441a930e3678893e048943b7..3d2d836c3cc83a0403043a81f51b74e717047759 100644 (file)
@@ -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( */
index 6d54ea1fbc3b4bf5560956a5229692742791a544..375e45184d2bb778f87f20eaef8088a7d745ab9e 100644 (file)
@@ -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.