Skip to content

Commit

Permalink
elantech: Call psmouse_reset when elantech probe fails
Browse files Browse the repository at this point in the history
elantech_init() calls elantech_set_absolute_mode which sets the driver in
an absolute mode. When after this the elantech_init fails, it is best
to turn the ps/2 mouse emulation mode back on by calling psmouse_reset()
so that it can work as a regular mouse.

Signed-off-by: Ulrik De Bie <ulrik.debie-os@e2big.org>
  • Loading branch information
ulrikdb committed Jun 16, 2014
1 parent cf12fcc commit 53d8424
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/mouse/elantech.c
Expand Up @@ -1620,6 +1620,7 @@ int elantech_init(struct psmouse *psmouse)
sysfs_remove_group(&psmouse->ps2dev.serio->dev.kobj,
&elantech_attr_group);
init_fail:
psmouse_reset(psmouse);
kfree(etd);
return error;
}

0 comments on commit 53d8424

Please sign in to comment.