Commit 5bdea835 authored by Vipul Kumar Samar's avatar Vipul Kumar Samar Committed by Dmitry Torokhov

Input: spear-keyboard - fix disable device_init_wakeup in remove

This patch is to disable device wakeup while removing keyboard.
Signed-off-by: default avatarVipul Kumar Samar <vipulkumar.samar@st.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 8830cb88
...@@ -302,7 +302,7 @@ static int __devexit spear_kbd_remove(struct platform_device *pdev) ...@@ -302,7 +302,7 @@ static int __devexit spear_kbd_remove(struct platform_device *pdev)
release_mem_region(kbd->res->start, resource_size(kbd->res)); release_mem_region(kbd->res->start, resource_size(kbd->res));
kfree(kbd); kfree(kbd);
device_init_wakeup(&pdev->dev, 1); device_init_wakeup(&pdev->dev, 0);
platform_set_drvdata(pdev, NULL); platform_set_drvdata(pdev, NULL);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment