Commit 1fde28cf authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by 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: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bb546d0e
......@@ -453,7 +453,7 @@ hv_netvsc_dmi_table[] __maybe_unused = {
};
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;
int ret;
......@@ -475,11 +475,6 @@ static int netvsc_drv_init(void)
return ret;
}
static int __init netvsc_init(void)
{
return netvsc_drv_init();
}
static void __exit netvsc_exit(void)
{
netvsc_drv_exit();
......@@ -496,5 +491,5 @@ MODULE_LICENSE("GPL");
MODULE_VERSION(HV_DRV_VERSION);
MODULE_DESCRIPTION("Microsoft Hyper-V network driver");
module_init(netvsc_init);
module_init(netvsc_drv_init);
module_exit(netvsc_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment