From: Martin Kepplinger Date: Tue, 19 Jul 2016 21:30:39 +0000 (-0700) Subject: Input: pegasus_notetaker - cancel workqueue's work in suspend() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f32f5394415adcb93245213b50ab739e31c31b5b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: pegasus_notetaker - cancel workqueue's work in suspend() Signed-off-by: Martin Kepplinger Signed-off-by: Dmitry Torokhov --- 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;