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

index 11beb41c373e5493b331933a4b60fd80c3fac897..f99b944a9a7fb6d6cf802447bd463ac286745cec 100644 (file)
@@ -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);
index 16ca90d9ac24659c8be680038bd79ab91997c5d2..e97e2cf0fa442b66a49ee7c6afe0c66b3679baa6 100644 (file)
@@ -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);
 
index c0f3b7a1530b5d9384507c80d46d58ef56d51029..382baee4dfb2055234b530cd6d9bb72788bc7e04 100644 (file)
@@ -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)
 {