Commit 9bc83dcf authored by Fabrice Knevez's avatar Fabrice Knevez Committed by David S. Miller

[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: default avatarFabrice Knevez <nuxdoors@cegetel.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b06824ce
...@@ -225,7 +225,7 @@ static void sunkbd_reinit(struct work_struct *work) ...@@ -225,7 +225,7 @@ static void sunkbd_reinit(struct work_struct *work)
static void sunkbd_enable(struct sunkbd *sunkbd, int enable) static void sunkbd_enable(struct sunkbd *sunkbd, int enable)
{ {
serio_pause_rx(sunkbd->serio); serio_pause_rx(sunkbd->serio);
sunkbd->enabled = 1; sunkbd->enabled = enable;
serio_continue_rx(sunkbd->serio); serio_continue_rx(sunkbd->serio);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment