mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
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: 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>
This commit is contained in:
parent
480ae58db5
commit
f51b3593bb
1 changed files with 3 additions and 14 deletions
|
@ -172,18 +172,6 @@ static int vmbus_dev_add(struct hv_device *dev, void *info)
|
||||||
return ret;
|
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
|
* 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;
|
struct hv_device *dev_ctx = &vmbus_drv.device_ctx;
|
||||||
|
|
||||||
/* Remove the root device */
|
vmbus_release_unattached_channels();
|
||||||
vmbus_dev_rm(dev_ctx);
|
vmbus_disconnect();
|
||||||
|
on_each_cpu(hv_synic_cleanup, NULL, 1);
|
||||||
|
|
||||||
vmbus_cleanup();
|
vmbus_cleanup();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue