Skip to content

Commit

Permalink
Input: spear-keyboard - fix disable device_init_wakeup in remove
Browse files Browse the repository at this point in the history
This patch is to disable device wakeup while removing keyboard.

Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Vipul Kumar Samar authored and Dmitry Torokhov committed Jul 8, 2012
1 parent 8830cb8 commit 5bdea83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/spear-keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static int __devexit spear_kbd_remove(struct platform_device *pdev)
release_mem_region(kbd->res->start, resource_size(kbd->res));
kfree(kbd);

device_init_wakeup(&pdev->dev, 1);
device_init_wakeup(&pdev->dev, 0);
platform_set_drvdata(pdev, NULL);

return 0;
Expand Down

0 comments on commit 5bdea83

Please sign in to comment.