From: Fabrice Knevez Date: Thu, 14 Dec 2006 23:20:29 +0000 (-0800) Subject: [SUNKBD]: Fix sunkbd_enable(sunkbd, 0); obvious. X-Git-Tag: v2.6.20-rc2~115 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9bc83dcff8fab1f22048c8f82deb3198ec44d53f;p=linux-2.6-omap-h63xx.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: David S. Miller --- diff --git a/drivers/input/keyboard/sunkbd.c b/drivers/input/keyboard/sunkbd.c index 3826db9403e..cc023836641 100644 --- a/drivers/input/keyboard/sunkbd.c +++ b/drivers/input/keyboard/sunkbd.c @@ -225,7 +225,7 @@ static void sunkbd_reinit(struct work_struct *work) 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); }