From: Vipul Kumar Samar Date: Sun, 8 Jul 2012 01:00:10 +0000 (-0700) Subject: Input: spear-keyboard - fix disable device_init_wakeup in remove X-Git-Tag: v3.12-rc1~9^2~87^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bdea83565e8b290410521d0dd64b7d3cc41603b;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c index 6f287f7..45dd02c 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) 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;