Skip to content

Commit

Permalink
Staging: hv: netvsc_drv: Make netvsc_drv_init the module init function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent bb546d0 commit 1fde28c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand All @@ -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);

0 comments on commit 1fde28c

Please sign in to comment.