mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
Staging: hv: Cleanup the initialization of storvsc driver
Cleanup the initialization sequence for the storvsc driver. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@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
2b8b35825f
commit
db0857771b
1 changed files with 3 additions and 3 deletions
|
@ -191,7 +191,7 @@ static struct scsi_host_template scsi_driver = {
|
|||
/*
|
||||
* storvsc_drv_init - StorVsc driver initialization.
|
||||
*/
|
||||
static int storvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
|
||||
static int storvsc_drv_init(void)
|
||||
{
|
||||
int ret;
|
||||
struct storvsc_driver_object *storvsc_drv_obj = &g_storvsc_drv;
|
||||
|
@ -200,7 +200,7 @@ static int storvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
|
|||
storvsc_drv_obj->ring_buffer_size = storvsc_ringbuffer_size;
|
||||
|
||||
/* Callback to client driver to complete the initialization */
|
||||
drv_init(&storvsc_drv_obj->base);
|
||||
stor_vsc_initialize(&storvsc_drv_obj->base);
|
||||
|
||||
drv->priv = storvsc_drv_obj;
|
||||
|
||||
|
@ -986,7 +986,7 @@ static int __init storvsc_init(void)
|
|||
int ret;
|
||||
|
||||
DPRINT_INFO(STORVSC_DRV, "Storvsc initializing....");
|
||||
ret = storvsc_drv_init(stor_vsc_initialize);
|
||||
ret = storvsc_drv_init();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue