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

Staging: hv: mouse_drv: Move the assignment of name variable

In preparation to eliminate mouse_vsc_initialize,
move the assignment of driver name.
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>
上级 eb94b2f5
......@@ -979,7 +979,6 @@ static void mousevsc_drv_exit(void)
static int mouse_vsc_initialize(struct hv_driver *driver)
{
driver->name = driver_name;
memcpy(&driver->dev_type, &mouse_guid,
sizeof(struct hv_guid));
......@@ -998,6 +997,7 @@ static int __init mousevsc_init(void)
mouse_vsc_initialize(&input_drv_obj->base);
drv->driver.name = driver_name;
drv->name = driver_name;
/* The driver belongs to vmbus */
vmbus_child_driver_register(&drv->driver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册