summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2016-02-12 17:27:44 +0100
committerJiri Kosina <jkosina@suse.cz>2016-02-16 20:40:38 +0100
commit17f28470f4c705811ad6870162f30275143da235 (patch)
treed7a280822701822177b4eec009f60a21bd9f2552
parentfd5f92b6d35f8978d98190f2ee61d1b210bb953e (diff)
downloadlinux-17f28470f4c705811ad6870162f30275143da235.tar.gz
linux-17f28470f4c705811ad6870162f30275143da235.tar.bz2
linux-17f28470f4c705811ad6870162f30275143da235.zip
HID: wacom: cleanup input devices
Just some cleaning up when the input devices are unregistered. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/wacom_sys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 5cb852886179..9a410351d56a 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -1357,6 +1357,9 @@ static void wacom_clean_inputs(struct wacom *wacom)
wacom->wacom_wac.pen_input = NULL;
wacom->wacom_wac.touch_input = NULL;
wacom->wacom_wac.pad_input = NULL;
+ wacom->wacom_wac.pen_registered = false;
+ wacom->wacom_wac.touch_registered = false;
+ wacom->wacom_wac.pad_registered = false;
wacom_destroy_leds(wacom);
}