Skip to content

Commit

Permalink
HID: hv_mouse: Properly add the hid device
Browse files Browse the repository at this point in the history
We need to properly add the hid device to correctly initialize the sysfs state.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reported-by: Fuzhou Chen <fuzhouch@microsoft.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
K. Y. Srinivasan authored and Jiri Kosina committed Dec 1, 2011
1 parent 045b168 commit 74c4fb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/hid/hid-hyperv.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ static int mousevsc_probe(struct hv_device *device,

sprintf(hid_dev->name, "%s", "Microsoft Vmbus HID-compliant Mouse");

ret = hid_add_device(hid_dev);
if (ret)
goto probe_err1;

ret = hid_parse_report(hid_dev, input_dev->report_desc,
input_dev->report_desc_size);

Expand Down

0 comments on commit 74c4fb0

Please sign in to comment.