diff options
author | Vipul Kumar Samar <vipulkumar.samar@st.com> | 2012-07-07 21:00:10 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-07-07 21:01:43 -0400 |
commit | 5bdea83565e8b290410521d0dd64b7d3cc41603b (patch) | |
tree | 07d716ebea3aacd83d911c7fc7da0d900324bc6b | |
parent | 8830cb88dd6d60c3bb4cb46d8a855628e4875b18 (diff) |
Input: spear-keyboard - fix disable device_init_wakeup in remove
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>
-rw-r--r-- | drivers/input/keyboard/spear-keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c index 6f287f7e1538..45dd02cbcaa0 100644 --- a/drivers/input/keyboard/spear-keyboard.c +++ b/drivers/input/keyboard/spear-keyboard.c | |||
@@ -302,7 +302,7 @@ static int __devexit spear_kbd_remove(struct platform_device *pdev) | |||
302 | release_mem_region(kbd->res->start, resource_size(kbd->res)); | 302 | release_mem_region(kbd->res->start, resource_size(kbd->res)); |
303 | kfree(kbd); | 303 | kfree(kbd); |
304 | 304 | ||
305 | device_init_wakeup(&pdev->dev, 1); | 305 | device_init_wakeup(&pdev->dev, 0); |
306 | platform_set_drvdata(pdev, NULL); | 306 | platform_set_drvdata(pdev, NULL); |
307 | 307 | ||
308 | return 0; | 308 | return 0; |