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>
}
-/*
- * vmbus_cleanup - Perform any cleanup when the driver is removed
- */
-static void vmbus_cleanup(void)
-{
-
- hv_cleanup();
-}
-
struct onmessage_work_context {
struct work_struct work;
struct hv_message msg;
vmbus_disconnect();
on_each_cpu(hv_synic_cleanup, NULL, 1);
- vmbus_cleanup();
+ hv_cleanup();
/* Unregister the root bus device */
device_unregister(&dev_ctx->device);