Input: pegasus_notetaker - cancel workqueue's work in suspend()
authorMartin Kepplinger <martink@posteo.de>
Tue, 19 Jul 2016 21:30:39 +0000 (14:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 19 Jul 2016 21:33:06 +0000 (14:33 -0700)
Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/pegasus_notetaker.c

index ef5fd31abaef6ef71ce6915c4b841450729ef5c9..17770df37628e27a6b6452cf247880edf6782802 100644 (file)
@@ -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;