diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2016-02-12 11:27:44 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-02-16 14:40:38 -0500 |
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) | |||
1357 | wacom->wacom_wac.pen_input = NULL; | 1357 | wacom->wacom_wac.pen_input = NULL; |
1358 | wacom->wacom_wac.touch_input = NULL; | 1358 | wacom->wacom_wac.touch_input = NULL; |
1359 | wacom->wacom_wac.pad_input = NULL; | 1359 | wacom->wacom_wac.pad_input = NULL; |
1360 | wacom->wacom_wac.pen_registered = false; | ||
1361 | wacom->wacom_wac.touch_registered = false; | ||
1362 | wacom->wacom_wac.pad_registered = false; | ||
1360 | wacom_destroy_leds(wacom); | 1363 | wacom_destroy_leds(wacom); |
1361 | } | 1364 | } |
1362 | 1365 | ||