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

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

Staging: hv: Get rid of vmbus_dev_rm() function



Get rid of the vmbus_dev_rm() 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 480ae58d
Loading
Loading
Loading
Loading
+3 −14
Original line number Diff line number Diff line
@@ -172,18 +172,6 @@ static int vmbus_dev_add(struct hv_device *dev, void *info)
	return ret;
}

/*
 * vmbus_dev_rm - Callback when the root bus device is removed
 */
static int vmbus_dev_rm(struct hv_device *dev)
{
	int ret = 0;

	vmbus_release_unattached_channels();
	vmbus_disconnect();
	on_each_cpu(hv_synic_cleanup, NULL, 1);
	return ret;
}

/*
 * vmbus_cleanup - Perform any cleanup when the driver is removed
@@ -568,8 +556,9 @@ static void vmbus_bus_exit(void)

	struct hv_device *dev_ctx = &vmbus_drv.device_ctx;

	/* Remove the root device */
	vmbus_dev_rm(dev_ctx);
	vmbus_release_unattached_channels();
	vmbus_disconnect();
	on_each_cpu(hv_synic_cleanup, NULL, 1);

	vmbus_cleanup();