From: Fabrice Knevez Date: Thu, 4 Jan 2007 23:29:31 +0000 (+0100) Subject: [SUNKBD]: Fix sunkbd_enable(sunkbd, 0); obvious. X-Git-Tag: v2.6.16.38-rc1~30 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=614818937a458c7db7a34213f4f8084a64586f41;p=karo-tx-linux.git [SUNKBD]: Fix sunkbd_enable(sunkbd, 0); obvious. "sunkbd_enable(sunkbd, 0);" has no effect. Adding "sunkbd->enabled = enable" in sunkbd_enable (obvious) Signed-off-by: Fabrice Knevez Signed-off-by: Adrian Bunk --- diff --git a/drivers/input/keyboard/sunkbd.c b/drivers/input/keyboard/sunkbd.c index b15b6d8d4f83..84c00a53fd40 100644 --- a/drivers/input/keyboard/sunkbd.c +++ b/drivers/input/keyboard/sunkbd.c @@ -226,7 +226,7 @@ static void sunkbd_reinit(void *data) static void sunkbd_enable(struct sunkbd *sunkbd, int enable) { serio_pause_rx(sunkbd->serio); - sunkbd->enabled = 1; + sunkbd->enabled = enable; serio_continue_rx(sunkbd->serio); }