summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-hyperv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-11-30 08:52:23 -0800
committerJiri Kosina <jkosina@suse.cz>2011-12-01 20:53:57 +0100
commit74c4fb058083b47571a4f76dcfce95085f2d8098 (patch)
treeb360fa2ca1808e70025eab6a89ddf5749221444e /drivers/hid/hid-hyperv.c
parent045b1684bc21575793a099490938d197555eb128 (diff)
downloadlinux-74c4fb058083b47571a4f76dcfce95085f2d8098.tar.bz2
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,
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);