From: K. Y. Srinivasan Date: Fri, 13 May 2011 02:35:14 +0000 (-0700) Subject: Staging: hv: netvsc_drv: Change the signature of netvsc_drv_init() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=073aad34b335693e2134fdfaaa6ff69b8f3106bb;p=mv-sheeva.git Staging: hv: netvsc_drv: Change the signature of netvsc_drv_init() Change the signature of netvsc_drv_init(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index b0801c6c96f..2aa273380f1 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -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)