summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2008-05-28 06:54:01 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-05-28 06:54:01 +0200
commit57f5b1590f2d801a3a7f072e2c65f14d4545852c (patch)
tree3db357ca8b0f79e873e037733854062b170dd929 /drivers/input
parentInput: apanel - remove duplicate include (diff)
downloadlinux-57f5b1590f2d801a3a7f072e2c65f14d4545852c.tar.xz
linux-57f5b1590f2d801a3a7f072e2c65f14d4545852c.zip
Input: atkbd - mark keyboard as disabled when suspending/unloading
This will shut off garbage that may come from KBD port during resume. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/atkbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 4a95adc4cc78..af58a6f1e898 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -807,6 +807,8 @@ static int atkbd_activate(struct atkbd *atkbd)
static void atkbd_cleanup(struct serio *serio)
{
struct atkbd *atkbd = serio_get_drvdata(serio);
+
+ atkbd_disable(atkbd);
ps2_command(&atkbd->ps2dev, NULL, ATKBD_CMD_RESET_BAT);
}