From: K. Y. Srinivasan Date: Wed, 18 Jan 2012 16:57:14 +0000 (-0800) Subject: HID: hyperv: Properly disconnect the input device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c1c454b8691cc95aa83f19273ed7845914c70e83;p=openwrt%2Fstaging%2Fblogic.git HID: hyperv: Properly disconnect the input device When we unload the mouse driver, properly disconnect the input device. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Reported-by: Fuzhou Chen Cc: stable Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c index 0c33ae9cf0f0..406632472c1b 100644 --- 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);