提交 bb546d0e 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

Staging: hv: netvsc_drv: Move the dmi_check code to netvsc_drv_init()

In preparation to eliminating netvsc_init(), move the dmi_check code
to netvsc_drv_init().
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: NHank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 073aad34
......@@ -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);
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册