Skip to content

Commit f620516

Browse files
bentissJiri Kosina
authored andcommitted
HID: wacom: close the wireless receiver on remove()
rmmod/insmod the wacom.ko module does not work for the receiver because it was not previously closed. Now, we can hack with the wireless receiver without having to unplug/replug it. Signed-off-by: Benjamin Tissoires <[email protected]> Acked-by: Ping Cheng <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 17f2847 commit f620516

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/hid/wacom_sys.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,11 @@ static int wacom_probe(struct hid_device *hdev,
18531853
static void wacom_remove(struct hid_device *hdev)
18541854
{
18551855
struct wacom *wacom = hid_get_drvdata(hdev);
1856+
struct wacom_wac *wacom_wac = &wacom->wacom_wac;
1857+
struct wacom_features *features = &wacom_wac->features;
1858+
1859+
if (features->device_type & WACOM_DEVICETYPE_WL_MONITOR)
1860+
hid_hw_close(hdev);
18561861

18571862
hid_hw_stop(hdev);
18581863

0 commit comments

Comments
 (0)