summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2016-07-19 14:30:39 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-07-19 14:33:06 -0700
commitf32f5394415adcb93245213b50ab739e31c31b5b (patch)
tree9f78eada0cffbaaa137d5c34d5af60aff8e5d045 /drivers/input/tablet
parent9d3bef0be57d06fea442f17c95011f3530ff3ff8 (diff)
downloadlinux-f32f5394415adcb93245213b50ab739e31c31b5b.tar.bz2
Input: pegasus_notetaker - cancel workqueue's work in suspend()
Signed-off-by: Martin Kepplinger <martink@posteo.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r--drivers/input/tablet/pegasus_notetaker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c
index ef5fd31abaef..17770df37628 100644
--- a/drivers/input/tablet/pegasus_notetaker.c
+++ b/drivers/input/tablet/pegasus_notetaker.c
@@ -389,6 +389,7 @@ static int pegasus_suspend(struct usb_interface *intf, pm_message_t message)
mutex_lock(&pegasus->dev->mutex);
usb_kill_urb(pegasus->irq);
+ cancel_work_sync(&pegasus->init);
mutex_unlock(&pegasus->dev->mutex);
return 0;