提交 ac84eba2 编写于 作者: U Ulrik De Bie 提交者: 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: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NUlrik De Bie <ulrik.debie-os@e2big.org>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册