projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba18311
)
HID: hyperv: Properly disconnect the input device
author
K. Y. Srinivasan
<
[email protected]
>
Wed, 18 Jan 2012 16:57:14 +0000
(08:57 -0800)
committer
Jiri Kosina
<
[email protected]
>
Thu, 2 Feb 2012 09:56:11 +0000
(10:56 +0100)
When we unload the mouse driver, properly disconnect the input device.
Signed-off-by: K. Y. Srinivasan <
[email protected]
>
Signed-off-by: Haiyang Zhang <
[email protected]
>
Reported-by: Fuzhou Chen <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Jiri Kosina <
[email protected]
>
drivers/hid/hid-hyperv.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-hyperv.c
b/drivers/hid/hid-hyperv.c
index 0c33ae9cf0f0e27549f3fd505e242dbb98b18be2..406632472c1bb038cdf06dae37c7f115f479e94a 100644
(file)
--- a/
drivers/hid/hid-hyperv.c
+++ b/
drivers/hid/hid-hyperv.c
@@
-548,6
+548,7
@@
static int mousevsc_remove(struct hv_device *dev)
struct mousevsc_dev *input_dev = hv_get_drvdata(dev);
vmbus_close(dev->channel);
+ hid_hw_stop(input_dev->hid_device);
hid_destroy_device(input_dev->hid_device);
mousevsc_free_device(input_dev);