]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/keyboard/tsc2301_kp.c
tsc2301 - fix keyboard stuck problem
[linux-2.6-omap-h63xx.git] / drivers / input / keyboard / tsc2301_kp.c
index 473c0f2d9a47e08aab4333098d53a2f0b2a1e107..3703cd5489beeb081eb4134cb6028e4d9a3c9d9e 100644 (file)
@@ -270,14 +270,9 @@ out:
  */
 void tsc2301_kp_restart(struct tsc2301 *tsc)
 {
-       struct tsc2301_kp *kp = tsc->kp;
-
-       mutex_lock(&kp->mutex);
-       if (!kp->user_disabled) {
-               tsc2301_kp_disable(tsc, 0);
-               tsc2301_kp_enable(tsc);
+       if (!tsc2301_kp_disabled(tsc)) {
+               tsc2301_kp_start_scan(tsc);
        }
-       mutex_unlock(&kp->mutex);
 }
 
 static ssize_t tsc2301_kp_disable_show(struct device *dev,