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

Staging: hv: netvsc_drv: Make netvsc_drv_init the module init function

Now make netvsc_drv_init the module init function.
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>
上级 bb546d0e
...@@ -453,7 +453,7 @@ hv_netvsc_dmi_table[] __maybe_unused = { ...@@ -453,7 +453,7 @@ 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(void) static int __init netvsc_drv_init(void)
{ {
struct hv_driver *drv = &netvsc_drv; struct hv_driver *drv = &netvsc_drv;
int ret; int ret;
...@@ -475,11 +475,6 @@ static int netvsc_drv_init(void) ...@@ -475,11 +475,6 @@ static int netvsc_drv_init(void)
return ret; return ret;
} }
static int __init netvsc_init(void)
{
return netvsc_drv_init();
}
static void __exit netvsc_exit(void) static void __exit netvsc_exit(void)
{ {
netvsc_drv_exit(); netvsc_drv_exit();
...@@ -496,5 +491,5 @@ MODULE_LICENSE("GPL"); ...@@ -496,5 +491,5 @@ MODULE_LICENSE("GPL");
MODULE_VERSION(HV_DRV_VERSION); MODULE_VERSION(HV_DRV_VERSION);
MODULE_DESCRIPTION("Microsoft Hyper-V network driver"); MODULE_DESCRIPTION("Microsoft Hyper-V network driver");
module_init(netvsc_init); module_init(netvsc_drv_init);
module_exit(netvsc_exit); module_exit(netvsc_exit);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册