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

Staging: hv: mouse_drv: Move the code to copy dev_type information

In preparation to eliminate mouse_vsc_initialize,
move the code that copies the dev_type info.
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>
上级 a5fae3b5
......@@ -979,8 +979,6 @@ static void mousevsc_drv_exit(void)
static int mouse_vsc_initialize(struct hv_driver *driver)
{
memcpy(&driver->dev_type, &mouse_guid,
sizeof(struct hv_guid));
return 0;
}
......@@ -995,6 +993,8 @@ static int __init mousevsc_init(void)
/* Callback to client driver to complete the initialization */
mouse_vsc_initialize(&input_drv_obj->base);
memcpy(&drv->dev_type, &mouse_guid,
sizeof(struct hv_guid));
drv->driver.name = driver_name;
drv->name = driver_name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册