diff options
Diffstat (limited to 'drivers/input/mouse/hgpk.c')
-rw-r--r-- | drivers/input/mouse/hgpk.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/input/mouse/hgpk.c b/drivers/input/mouse/hgpk.c index 1c5d521de600..575f880727fe 100644 --- a/drivers/input/mouse/hgpk.c +++ b/drivers/input/mouse/hgpk.c | |||
@@ -640,7 +640,6 @@ static int hgpk_reset_device(struct psmouse *psmouse, bool recalibrate) | |||
640 | 640 | ||
641 | static int hgpk_force_recalibrate(struct psmouse *psmouse) | 641 | static int hgpk_force_recalibrate(struct psmouse *psmouse) |
642 | { | 642 | { |
643 | struct ps2dev *ps2dev = &psmouse->ps2dev; | ||
644 | struct hgpk_data *priv = psmouse->private; | 643 | struct hgpk_data *priv = psmouse->private; |
645 | int err; | 644 | int err; |
646 | 645 | ||
@@ -669,12 +668,9 @@ static int hgpk_force_recalibrate(struct psmouse *psmouse) | |||
669 | * we don't have a good way to deal with it. The 2s window stuff | 668 | * we don't have a good way to deal with it. The 2s window stuff |
670 | * (below) is our best option for now. | 669 | * (below) is our best option for now. |
671 | */ | 670 | */ |
672 | 671 | if (psmouse_activate(psmouse)) | |
673 | if (ps2_command(ps2dev, NULL, PSMOUSE_CMD_ENABLE)) | ||
674 | return -1; | 672 | return -1; |
675 | 673 | ||
676 | psmouse_set_state(psmouse, PSMOUSE_ACTIVATED); | ||
677 | |||
678 | if (tpdebug) | 674 | if (tpdebug) |
679 | psmouse_dbg(psmouse, "touchpad reactivated\n"); | 675 | psmouse_dbg(psmouse, "touchpad reactivated\n"); |
680 | 676 | ||
@@ -733,8 +729,7 @@ static int hgpk_toggle_powersave(struct psmouse *psmouse, int enable) | |||
733 | } | 729 | } |
734 | 730 | ||
735 | /* should be all set, enable the touchpad */ | 731 | /* should be all set, enable the touchpad */ |
736 | ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_ENABLE); | 732 | psmouse_activate(psmouse); |
737 | psmouse_set_state(psmouse, PSMOUSE_ACTIVATED); | ||
738 | psmouse_dbg(psmouse, "Touchpad powered up.\n"); | 733 | psmouse_dbg(psmouse, "Touchpad powered up.\n"); |
739 | } else { | 734 | } else { |
740 | psmouse_dbg(psmouse, "Powering off touchpad.\n"); | 735 | psmouse_dbg(psmouse, "Powering off touchpad.\n"); |