aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-hyperv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-11-30 11:52:23 -0500
committerJiri Kosina <jkosina@suse.cz>2011-12-01 14:53:57 -0500
commit74c4fb058083b47571a4f76dcfce95085f2d8098 (patch)
treeb360fa2ca1808e70025eab6a89ddf5749221444e /drivers/hid/hid-hyperv.c
parent045b1684bc21575793a099490938d197555eb128 (diff)
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>
Diffstat (limited to 'drivers/hid/hid-hyperv.c')
-rw-r--r--drivers/hid/hid-hyperv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c
index d503cbbe1e04..0c33ae9cf0f0 100644
--- a/drivers/hid/hid-hyperv.c
+++ b/drivers/hid/hid-hyperv.c
@@ -506,6 +506,10 @@ static int mousevsc_probe(struct hv_device *device,
506 506
507 sprintf(hid_dev->name, "%s", "Microsoft Vmbus HID-compliant Mouse"); 507 sprintf(hid_dev->name, "%s", "Microsoft Vmbus HID-compliant Mouse");
508 508
509 ret = hid_add_device(hid_dev);
510 if (ret)
511 goto probe_err1;
512
509 ret = hid_parse_report(hid_dev, input_dev->report_desc, 513 ret = hid_parse_report(hid_dev, input_dev->report_desc,
510 input_dev->report_desc_size); 514 input_dev->report_desc_size);
511 515