Skip to content

Commit

Permalink
Input: atkbd - rely on input core to restore state on resume
Browse files Browse the repository at this point in the history
Now that input core takes care of restoring state of input devices
upon resume we don't need to do anything special here.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Sep 18, 2009
1 parent ffd0db9 commit 9605fb4
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions 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 9605fb4

Please sign in to comment.