Input: ps2-gpio - flush TX work when closing port
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 7 Feb 2019 22:22:42 +0000 (14:22 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 9 Feb 2019 17:00:02 +0000 (09:00 -0800)
commit33a841ce5cef4ca6c18ad333248b6d273f54c839
tree6db446b3098ff5985e56e4e4feb3ffd7c297a269
parent628442880af8c201d307a45f3862a7a17df8a189
Input: ps2-gpio - flush TX work when closing port

To ensure that TX work is not running after serio port has been torn down,
let's flush it when closing the port.

Reported-by: Sven Van Asbroeck <thesven73@gmail.com>
Acked-by: Danilo Krummrich <danilokrummrich@dk-develop.de>
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/ps2-gpio.c