aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-03-10 17:07:44 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 15:29:59 -0400
commite13a0b5a4b2ca9e318896a1c8c4b45d62477c956 (patch)
treec86e1d180049e318792b0e0a0cd47d9fc97db656
parent3ca07cb06d3176b3eb1bfd49fdc8c8fbe649fa5b (diff)
Staging: hv: Get rid of vmbus_child_dev_add()
The function vmbus_child_dev_add() is a wrapper that can be eliminated; get rid of it. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com> Signed-off-by: Abhishek Kane <v-abkane@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/channel_mgmt.c2
-rw-r--r--drivers/staging/hv/vmbus_drv.c9
-rw-r--r--drivers/staging/hv/vmbus_private.h1
3 files changed, 2 insertions, 10 deletions
diff --git a/drivers/staging/hv/channel_mgmt.c b/drivers/staging/hv/channel_mgmt.c
index 0781c0ed7056..33688094e1fd 100644
--- a/drivers/staging/hv/channel_mgmt.c
+++ b/drivers/staging/hv/channel_mgmt.c
@@ -408,7 +408,7 @@ static void vmbus_process_offer(struct work_struct *work)
408 * binding which eventually invokes the device driver's AddDevice() 408 * binding which eventually invokes the device driver's AddDevice()
409 * method. 409 * method.
410 */ 410 */
411 ret = vmbus_child_dev_add(newchannel->device_obj); 411 ret = vmbus_child_device_register(newchannel->device_obj);
412 if (ret != 0) { 412 if (ret != 0) {
413 DPRINT_ERR(VMBUS, 413 DPRINT_ERR(VMBUS,
414 "unable to add child device object (relid %d)", 414 "unable to add child device object (relid %d)",
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c
index 0b91edad6e11..b473f468dd83 100644
--- a/drivers/staging/hv/vmbus_drv.c
+++ b/drivers/staging/hv/vmbus_drv.c
@@ -139,13 +139,6 @@ static const struct hv_guid device_id = {
139 139
140static struct hv_device *vmbus_device; /* vmbus root device */ 140static struct hv_device *vmbus_device; /* vmbus root device */
141 141
142/*
143 * vmbus_child_dev_add - Registers the child device with the vmbus
144 */
145int vmbus_child_dev_add(struct hv_device *child_dev)
146{
147 return vmbus_child_device_register(child_dev);
148}
149 142
150/* 143/*
151 * vmbus_dev_add - Callback when the root bus device is added 144 * vmbus_dev_add - Callback when the root bus device is added
@@ -662,7 +655,7 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *type,
662} 655}
663 656
664/* 657/*
665 * vmbus_child_device_register - Register the child device on the specified bus 658 * vmbus_child_device_register - Register the child device
666 */ 659 */
667int vmbus_child_device_register(struct hv_device *child_device_obj) 660int vmbus_child_device_register(struct hv_device *child_device_obj)
668{ 661{
diff --git a/drivers/staging/hv/vmbus_private.h b/drivers/staging/hv/vmbus_private.h
index c176773440d2..ca050a499b99 100644
--- a/drivers/staging/hv/vmbus_private.h
+++ b/drivers/staging/hv/vmbus_private.h
@@ -107,7 +107,6 @@ struct hv_device *vmbus_child_device_create(struct hv_guid *type,
107 struct hv_guid *instance, 107 struct hv_guid *instance,
108 struct vmbus_channel *channel); 108 struct vmbus_channel *channel);
109 109
110int vmbus_child_dev_add(struct hv_device *device);
111int vmbus_child_device_register(struct hv_device *child_device_obj); 110int vmbus_child_device_register(struct hv_device *child_device_obj);
112void vmbus_child_device_unregister(struct hv_device *device_obj); 111void vmbus_child_device_unregister(struct hv_device *device_obj);
113 112