35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From: "K. Y. Srinivasan" <kys@microsoft.com>
|
|
Date: Wed, 30 Nov 2011 08:52:23 -0800
|
|
Subject: [PATCH 27/77] HID: hv_mouse: Properly add the hid device
|
|
|
|
commit 74c4fb058083b47571a4f76dcfce95085f2d8098 upstream.
|
|
|
|
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>
|
|
---
|
|
drivers/hid/hid-hyperv.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c
|
|
index d503cbb..0c33ae9 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,
|
|
|
|
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);
|
|
|
|
--
|
|
1.7.9.5
|
|
|