summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Y. Srinivasan2011-05-13 04:35:16 +0200
committerGreg Kroah-Hartman2011-05-17 21:28:57 +0200
commit1fde28cffb6953487e0ab96a4123f4443d499364 (patch)
tree91b81c5487c842a2d5ea227165c082b6a7b34eb6
parentStaging: hv: netvsc_drv: Move the dmi_check code to netvsc_drv_init() (diff)
downloadkernel-qcow2-linux-1fde28cffb6953487e0ab96a4123f4443d499364.tar.gz
kernel-qcow2-linux-1fde28cffb6953487e0ab96a4123f4443d499364.tar.xz
kernel-qcow2-linux-1fde28cffb6953487e0ab96a4123f4443d499364.zip
Staging: hv: netvsc_drv: Make netvsc_drv_init the module init function
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>
-rw-r--r--drivers/staging/hv/netvsc_drv.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index 5217021d6e1f..e690ec801754 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -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);