Commit a5fae3b5 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by 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: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent eb94b2f5
...@@ -979,7 +979,6 @@ static void mousevsc_drv_exit(void) ...@@ -979,7 +979,6 @@ static void mousevsc_drv_exit(void)
static int mouse_vsc_initialize(struct hv_driver *driver) static int mouse_vsc_initialize(struct hv_driver *driver)
{ {
driver->name = driver_name;
memcpy(&driver->dev_type, &mouse_guid, memcpy(&driver->dev_type, &mouse_guid,
sizeof(struct hv_guid)); sizeof(struct hv_guid));
...@@ -998,6 +997,7 @@ static int __init mousevsc_init(void) ...@@ -998,6 +997,7 @@ static int __init mousevsc_init(void)
mouse_vsc_initialize(&input_drv_obj->base); mouse_vsc_initialize(&input_drv_obj->base);
drv->driver.name = driver_name; drv->driver.name = driver_name;
drv->name = driver_name;
/* The driver belongs to vmbus */ /* The driver belongs to vmbus */
vmbus_child_driver_register(&drv->driver); vmbus_child_driver_register(&drv->driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment