[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 <nuxdoors@cegetel.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b06824ceca
commit
9bc83dcff8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue