Staging: hv: vmbus: Rename vmbus_child_device_register
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 8 Sep 2011 14:24:13 +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_register
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 f99b944a9a7fb6d6cf802447bd463ac286745cec..a9270467bb99a993302b6a945169cc7a3e0b6e30 100644 (file)
@@ -393,7 +393,7 @@ static void vmbus_process_offer(struct work_struct *work)
         * binding which eventually invokes the device driver's AddDevice()
         * method.
         */
-       ret = vmbus_child_device_register(newchannel->device_obj);
+       ret = vmbus_device_register(newchannel->device_obj);
        if (ret != 0) {
                pr_err("unable to add child device object (relid %d)\n",
                           newchannel->offermsg.child_relid);
index e97e2cf0fa442b66a49ee7c6afe0c66b3679baa6..b2dfcd650f18c818441a930e3678893e048943b7 100644 (file)
@@ -605,7 +605,7 @@ struct hv_device *vmbus_device_create(uuid_le *type,
                                         uuid_le *instance,
                                         struct vmbus_channel *channel);
 
-int vmbus_child_device_register(struct hv_device *child_device_obj);
+int vmbus_device_register(struct hv_device *child_device_obj);
 void vmbus_child_device_unregister(struct hv_device *device_obj);
 
 /* static void */
index 382baee4dfb2055234b530cd6d9bb72788bc7e04..6d54ea1fbc3b4bf5560956a5229692742791a544 100644 (file)
@@ -619,9 +619,9 @@ struct hv_device *vmbus_device_create(uuid_le *type,
 }
 
 /*
- * vmbus_child_device_register - Register the child device
+ * vmbus_device_register - Register the child device
  */
-int vmbus_child_device_register(struct hv_device *child_device_obj)
+int vmbus_device_register(struct hv_device *child_device_obj)
 {
        int ret = 0;