Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ece0e32f authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman
Browse files

Staging: hv: Get rid of vmbus_cleanup() function



Get rid of the vmbus_cleanup() function by inlining the
necessary code.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarMike Sterling <mike.sterling@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f51b3593
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -173,15 +173,6 @@ static int vmbus_dev_add(struct hv_device *dev, void *info)
}


/*
 * 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;
@@ -560,7 +551,7 @@ static void vmbus_bus_exit(void)
	vmbus_disconnect();
	on_each_cpu(hv_synic_cleanup, NULL, 1);

	vmbus_cleanup();
	hv_cleanup();

	/* Unregister the root bus device */
	device_unregister(&dev_ctx->device);