浏览代码

Input: adp5588-keys - cancel workqueue in failure path

In case we start with the device not fully quiesced we should make sure we
cancel the workqueue after freeing interrupt.

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Pramod Gurav 10 年之前
父节点
当前提交
b3f9db49c1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/input/keyboard/adp5588-keys.c

+ 1 - 0
drivers/input/keyboard/adp5588-keys.c

@@ -589,6 +589,7 @@ static int adp5588_probe(struct i2c_client *client,
 
  err_free_irq:
 	free_irq(client->irq, kpad);
+	cancel_delayed_work_sync(&kpad->work);
  err_unreg_dev:
 	input_unregister_device(input);
 	input = NULL;