Browse Source

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: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ulrik De Bie <ulrik.debie-os@e2big.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Ulrik De Bie 11 years ago
parent
commit
ac84eba220
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/input/mouse/elantech.c

+ 1 - 0
drivers/input/mouse/elantech.c

@@ -1506,6 +1506,7 @@ int elantech_init(struct psmouse *psmouse)
 	return 0;
 
  init_fail:
+	psmouse_reset(psmouse);
 	kfree(etd);
 	return -1;
 }