diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2016-02-12 17:27:44 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-02-16 20:40:38 +0100 |
commit | 17f28470f4c705811ad6870162f30275143da235 (patch) | |
tree | d7a280822701822177b4eec009f60a21bd9f2552 /drivers/hid | |
parent | fd5f92b6d35f8978d98190f2ee61d1b210bb953e (diff) |
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/wacom_sys.c | 3 |
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); } |