Now make netvsc_drv_init the module init function.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@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>
};
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;
return ret;
}
-static int __init netvsc_init(void)
-{
- return netvsc_drv_init();
-}
-
static void __exit netvsc_exit(void)
{
netvsc_drv_exit();
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);