mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
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:
committed by
Greg Kroah-Hartman
parent
eb94b2f5e4
commit
a5fae3b591
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user