]> err.no Git - linux-2.6/commitdiff
Input: atkbd - mark keyboard as disabled when suspending/unloading
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 28 May 2008 04:54:01 +0000 (00:54 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 28 May 2008 04:54:01 +0000 (00:54 -0400)
This will shut off garbage that may come from KBD port during resume.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/atkbd.c

index 4a95adc4cc7839380baa08e2a23e5a882e64d741..af58a6f1e898278b42bdd5980d51b10718fd807e 100644 (file)
@@ -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);
 }