]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Input: synaptics-rmi4 - destroy F54 poller workqueue when removing
authorChuhong Yuan <hslester96@gmail.com>
Fri, 15 Nov 2019 19:32:36 +0000 (11:32 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:21 +0000 (13:16 +0100)
commit92425dfd14fe02d66b1e85547aa94baac805371f
tree4f44201dc6d760cabe7d0066ee2035de4bd0dace
parent7385c6d5014cd24d7a5a6c75b02ea88d16a2bdac
Input: synaptics-rmi4 - destroy F54 poller workqueue when removing

BugLink: https://bugs.launchpad.net/bugs/1853915
commit ba60cf9f78f0d7c8e73c7390608f7f818ee68aa0 upstream.

The driver forgets to destroy workqueue in remove() similarly to what is
done when probe() fails. Add a call to destroy_workqueue() to fix it.

Since unregistration will wait for the work to finish, we do not need to
cancel/flush the work instance in remove().

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191114023405.31477-1-hslester96@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/input/rmi4/rmi_f54.c