summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-11-30 08:52:23 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-01 09:57:32 -0800
commitf75c0510784e9f6ce8808b01fb826d89d0ffbcd6 (patch)
tree738c80ca21d146fd59767e5bb398bad3fc5e4cc0 /drivers/staging/hv
parent0dcbcbb49e3e8636e2f9d8cbcbeea827c5c951d9 (diff)
downloadop-kernel-dev-f75c0510784e9f6ce8808b01fb826d89d0ffbcd6.zip
op-kernel-dev-f75c0510784e9f6ce8808b01fb826d89d0ffbcd6.tar.gz
Staging: hv: mousevsc: Properly add the hid device
We need to properly add the hid device to correctly initialize the sysfs state. While this patch is against the staging tree; Jiri, please pick up this patch as you merge the Hyper-V mouse driver. 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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r--drivers/staging/hv/hv_mouse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index a28c549..66da8e3 100644
--- a/drivers/staging/hv/hv_mouse.c
+++ b/drivers/staging/hv/hv_mouse.c
@@ -519,6 +519,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);
OpenPOWER on IntegriCloud