Skip to content

Commit 74c4fb0

Browse files
kattisrinivasanJiri Kosina
authored andcommitted
HID: hv_mouse: Properly add the hid device
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>
1 parent 045b168 commit 74c4fb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/hid/hid-hyperv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ static int mousevsc_probe(struct hv_device *device,
506506

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

509+
ret = hid_add_device(hid_dev);
510+
if (ret)
511+
goto probe_err1;
512+
509513
ret = hid_parse_report(hid_dev, input_dev->report_desc,
510514
input_dev->report_desc_size);
511515

0 commit comments

Comments
 (0)