Skip to content

Commit

Permalink
Staging: hv: Change the signature for vmbus_cleanup()
Browse files Browse the repository at this point in the history
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: 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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent a6e4d8e commit 21ec2de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 21ec2de

Please sign in to comment.