Input: spear-keyboard - fix disable device_init_wakeup in remove
authorVipul Kumar Samar <vipulkumar.samar@st.com>
Sun, 8 Jul 2012 01:00:10 +0000 (18:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 8 Jul 2012 01:01:43 +0000 (18:01 -0700)
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>
drivers/input/keyboard/spear-keyboard.c

index 6f287f7e15381b1c2c359928d717318bacfa23cb..45dd02cbcaa0cb63806349b50a60ce099e55c1a5 100644 (file)
@@ -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;