Staging: hv: netvsc_drv: Change the signature of netvsc_drv_init()
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 13 May 2011 02:35:14 +0000 (19:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 19:28:56 +0000 (12:28 -0700)
Change the signature of netvsc_drv_init().

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>
drivers/staging/hv/netvsc_drv.c

index b0801c6c96f217c3f71c787c6fb2bf347397c105..2aa273380f1059d374f50fc17b5d8e7098a80cdc 100644 (file)
@@ -453,13 +453,13 @@ hv_netvsc_dmi_table[] __maybe_unused  = {
 };
 MODULE_DEVICE_TABLE(dmi, hv_netvsc_dmi_table);
 
-static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
+static int netvsc_drv_init(void)
 {
        struct hv_driver *drv = &netvsc_drv;
        int ret;
 
        /* Callback to client driver to complete the initialization */
-       drv_init(drv);
+       netvsc_initialize(drv);
 
        drv->driver.name = drv->name;
 
@@ -476,7 +476,7 @@ static int __init netvsc_init(void)
        if (!dmi_check_system(hv_netvsc_dmi_table))
                return -ENODEV;
 
-       return netvsc_drv_init(netvsc_initialize);
+       return netvsc_drv_init();
 }
 
 static void __exit netvsc_exit(void)