diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-03-10 17:07:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 15:29:59 -0400 |
commit | e13a0b5a4b2ca9e318896a1c8c4b45d62477c956 (patch) | |
tree | c86e1d180049e318792b0e0a0cd47d9fc97db656 | |
parent | 3ca07cb06d3176b3eb1bfd49fdc8c8fbe649fa5b (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.c | 2 | ||||
-rw-r--r-- | drivers/staging/hv/vmbus_drv.c | 9 | ||||
-rw-r--r-- | drivers/staging/hv/vmbus_private.h | 1 |
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 | ||
140 | static struct hv_device *vmbus_device; /* vmbus root device */ | 140 | static struct hv_device *vmbus_device; /* vmbus root device */ |
141 | 141 | ||
142 | /* | ||
143 | * vmbus_child_dev_add - Registers the child device with the vmbus | ||
144 | */ | ||
145 | int 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 | */ |
667 | int vmbus_child_device_register(struct hv_device *child_device_obj) | 660 | int 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 | ||
110 | int vmbus_child_dev_add(struct hv_device *device); | ||
111 | int vmbus_child_device_register(struct hv_device *child_device_obj); | 110 | int vmbus_child_device_register(struct hv_device *child_device_obj); |
112 | void vmbus_child_device_unregister(struct hv_device *device_obj); | 111 | void vmbus_child_device_unregister(struct hv_device *device_obj); |
113 | 112 | ||