Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165588
b: refs/heads/master
c: 9605fb4
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Sep 18, 2009
1 parent a5516b8 commit 7976229
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffd0db97196c1057f09c2ab42dd5b30e94e511d9
refs/heads/master: 9605fb48e1998935a5ee70c965f90ad1ac023add
25 changes: 0 additions & 25 deletions trunk/drivers/input/keyboard/atkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,23 +773,6 @@ static int atkbd_select_set(struct atkbd *atkbd, int target_set, int allow_extra
static int atkbd_activate(struct atkbd *atkbd)
{
struct ps2dev *ps2dev = &atkbd->ps2dev;
unsigned char param[1];

/*
* Set the LEDs to a defined state.
*/

param[0] = 0;
if (ps2_command(ps2dev, param, ATKBD_CMD_SETLEDS))
return -1;

/*
* Set autorepeat to fastest possible.
*/

param[0] = 0;
if (ps2_command(ps2dev, param, ATKBD_CMD_SETREP))
return -1;

/*
* Enable the keyboard to receive keystrokes.
Expand Down Expand Up @@ -1158,14 +1141,6 @@ static int atkbd_reconnect(struct serio *serio)
return -1;

atkbd_activate(atkbd);

/*
* Restore repeat rate and LEDs (that were reset by atkbd_activate)
* to pre-resume state
*/
if (!atkbd->softrepeat)
atkbd_set_repeat_rate(atkbd);
atkbd_set_leds(atkbd);
}

atkbd_enable(atkbd);
Expand Down

0 comments on commit 7976229

Please sign in to comment.