Skip to content

Commit

Permalink
elantech: Call psmouse_reset when elantech probe fails
Browse files Browse the repository at this point in the history
Signed-off-by: Ulrik De Bie <ulrik.debie-os@e2big.org>
  • Loading branch information
ulrikdb committed Jun 13, 2014
1 parent f8570ef commit 69ab8ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/mouse/elantech.c
Expand Up @@ -1617,6 +1617,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 69ab8ef

Please sign in to comment.