Skip to content

Commit

Permalink
Input: adp5588-keys - cancel workqueue in failure path
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Michael Hennerich <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
Pramod Gurav authored and dtor committed Oct 7, 2014
1 parent 848d479 commit b3f9db4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/keyboard/adp5588-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3f9db4

Please sign in to comment.