summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2016-07-19 23:30:39 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-07-19 23:33:06 +0200
commitf32f5394415adcb93245213b50ab739e31c31b5b (patch)
tree9f78eada0cffbaaa137d5c34d5af60aff8e5d045 /drivers/input/tablet
parentInput: pegasus_notetaker - fix usb_autopm calls to be balanced (diff)
downloadlinux-f32f5394415adcb93245213b50ab739e31c31b5b.tar.xz
linux-f32f5394415adcb93245213b50ab739e31c31b5b.zip
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;