From f32f5394415adcb93245213b50ab739e31c31b5b Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Tue, 19 Jul 2016 14:30:39 -0700 Subject: Input: pegasus_notetaker - cancel workqueue's work in suspend() Signed-off-by: Martin Kepplinger Signed-off-by: Dmitry Torokhov --- drivers/input/tablet/pegasus_notetaker.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3