aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-03-10 17:06:55 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 15:29:58 -0400
commitece0e32fd2870f7d2b2f28a99f8e63bef3c01686 (patch)
treee727674cc02c081c334a346909e67ca8ec13f323
parentf51b3593bbea8b403117212588bda87429545fa7 (diff)
Staging: hv: Get rid of vmbus_cleanup() function
Get rid of the vmbus_cleanup() function by inlining the necessary code. 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/vmbus_drv.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c
index 11c69c576e3e..e078c5944d51 100644
--- a/drivers/staging/hv/vmbus_drv.c
+++ b/drivers/staging/hv/vmbus_drv.c
@@ -173,15 +173,6 @@ static int vmbus_dev_add(struct hv_device *dev, void *info)
173} 173}
174 174
175 175
176/*
177 * vmbus_cleanup - Perform any cleanup when the driver is removed
178 */
179static void vmbus_cleanup(void)
180{
181
182 hv_cleanup();
183}
184
185struct onmessage_work_context { 176struct onmessage_work_context {
186 struct work_struct work; 177 struct work_struct work;
187 struct hv_message msg; 178 struct hv_message msg;
@@ -560,7 +551,7 @@ static void vmbus_bus_exit(void)
560 vmbus_disconnect(); 551 vmbus_disconnect();
561 on_each_cpu(hv_synic_cleanup, NULL, 1); 552 on_each_cpu(hv_synic_cleanup, NULL, 1);
562 553
563 vmbus_cleanup(); 554 hv_cleanup();
564 555
565 /* Unregister the root bus device */ 556 /* Unregister the root bus device */
566 device_unregister(&dev_ctx->device); 557 device_unregister(&dev_ctx->device);