提交 21ec2de2 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: Change the signature for vmbus_cleanup()

As part of geting rid of hv_driver object from
vmbus_driver_context, change the signature of
vmbus_cleanup() function. Note that while
vmbus_cleanup() was passed a pointer to hv_driver,
this argument was unused.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NMike Sterling <mike.sterling@microsoft.com>
Signed-off-by: NAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: NHank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 a6e4d8e3
......@@ -190,9 +190,8 @@ static int vmbus_dev_rm(struct hv_device *dev)
/*
* vmbus_cleanup - Perform any cleanup when the driver is removed
*/
static void vmbus_cleanup(struct hv_driver *drv)
static void vmbus_cleanup(void)
{
/* struct vmbus_driver *driver = (struct vmbus_driver *)drv; */
hv_cleanup();
}
......@@ -574,7 +573,7 @@ static void vmbus_bus_exit(void)
/* Remove the root device */
vmbus_dev_rm(dev_ctx);
vmbus_cleanup(NULL);
vmbus_cleanup();
/* Unregister the root bus device */
device_unregister(&dev_ctx->device);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册