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: 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>
This commit is contained in:
parent
eb94b2f5e4
commit
a5fae3b591
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue