From: makarand.karvekar Date: Tue, 22 Feb 2011 23:21:10 +0000 (-0600) Subject: misc: kxtf9: corrected cancel work sync call for delayed work X-Git-Tag: firefly_0821_release~9834^2~70 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8357c9c3d04a374a960aa697b2e3e8dd43967dbd;p=firefly-linux-kernel-4.4.55.git misc: kxtf9: corrected cancel work sync call for delayed work Change-Id: Iec914fd1102b8b6dba5d9b818b6eacb0d6481187 Signed-off-by: makarand.karvekar --- diff --git a/drivers/misc/kxtf9.c b/drivers/misc/kxtf9.c index 391c56deb8c4..a7b54214ec1b 100755 --- a/drivers/misc/kxtf9.c +++ b/drivers/misc/kxtf9.c @@ -1239,7 +1239,7 @@ static int __devexit kxtf9_remove(struct i2c_client *client) kxtf9_device_power_off(tf9); if (tf9->regulator) regulator_put(tf9->regulator); - cancel_work_sync(&tf9->input_work); + cancel_delayed_work_sync(&tf9->input_work); destroy_workqueue(tf9->input_work_queue); kfree(tf9->pdata); destroy_workqueue(tf9->irq_work_queue);