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

Staging: hv: netvsc_drv: Change the signature of netvsc_drv_init()

Change the signature of netvsc_drv_init().
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@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>
上级 4753ff6a
...@@ -453,13 +453,13 @@ hv_netvsc_dmi_table[] __maybe_unused = { ...@@ -453,13 +453,13 @@ hv_netvsc_dmi_table[] __maybe_unused = {
}; };
MODULE_DEVICE_TABLE(dmi, hv_netvsc_dmi_table); MODULE_DEVICE_TABLE(dmi, hv_netvsc_dmi_table);
static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv)) static int netvsc_drv_init(void)
{ {
struct hv_driver *drv = &netvsc_drv; struct hv_driver *drv = &netvsc_drv;
int ret; int ret;
/* Callback to client driver to complete the initialization */ /* Callback to client driver to complete the initialization */
drv_init(drv); netvsc_initialize(drv);
drv->driver.name = drv->name; drv->driver.name = drv->name;
...@@ -476,7 +476,7 @@ static int __init netvsc_init(void) ...@@ -476,7 +476,7 @@ static int __init netvsc_init(void)
if (!dmi_check_system(hv_netvsc_dmi_table)) if (!dmi_check_system(hv_netvsc_dmi_table))
return -ENODEV; return -ENODEV;
return netvsc_drv_init(netvsc_initialize); return netvsc_drv_init();
} }
static void __exit netvsc_exit(void) static void __exit netvsc_exit(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册