Skip to content

Commit

Permalink
Staging: hv: netvsc_drv: Move the dmi_check code to netvsc_drv_init()
Browse files Browse the repository at this point in the history
In preparation to eliminating netvsc_init(), move the dmi_check code
to 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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 073aad3 commit bb546d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ static int netvsc_drv_init(void)
struct hv_driver *drv = &netvsc_drv;
int ret;

pr_info("initializing....");

if (!dmi_check_system(hv_netvsc_dmi_table))
return -ENODEV;


/* Callback to client driver to complete the initialization */
netvsc_initialize(drv);

Expand All @@ -471,11 +477,6 @@ static int netvsc_drv_init(void)

static int __init netvsc_init(void)
{
pr_info("initializing....");

if (!dmi_check_system(hv_netvsc_dmi_table))
return -ENODEV;

return netvsc_drv_init();
}

Expand Down

0 comments on commit bb546d0

Please sign in to comment.