Commit ac84eba2 authored by Ulrik De Bie's avatar Ulrik De Bie Committed by Dmitry Torokhov

Input: elantech - reset the device when elantech probe fails

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.
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarUlrik De Bie <ulrik.debie-os@e2big.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent a9e06219
......@@ -1506,6 +1506,7 @@ int elantech_init(struct psmouse *psmouse)
return 0;
init_fail:
psmouse_reset(psmouse);
kfree(etd);
return -1;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment