From: Dmitry Torokhov Date: Wed, 28 May 2008 04:54:01 +0000 (-0400) Subject: Input: atkbd - mark keyboard as disabled when suspending/unloading X-Git-Tag: v2.6.26-rc5~32^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=57f5b1590f2d801a3a7f072e2c65f14d4545852c;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index 4a95adc4cc7..af58a6f1e89 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); }