Skip to content

Commit

Permalink
Staging: hv: mouse_drv: Move the code to copy dev_type information
Browse files Browse the repository at this point in the history
In preparation to eliminate mouse_vsc_initialize,
move the code that copies the dev_type info.

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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 11, 2011
1 parent a5fae3b commit cf131e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit cf131e6

Please sign in to comment.