mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 12:24:18 +00:00
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 <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Reported-by: Fuzhou Chen <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
committed by
Jiri Kosina
parent
045b1684bc
commit
74c4fb0580
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user