From: Xiaotian Feng <xtfeng@gmail.com>
Date: Sun, 25 Nov 2012 07:08:54 +0000 (-0800)
Subject: Input: HIL - do not call tasklet_disable right before tasklet_kill
X-Git-Tag: v3.8-rc1~58^2^2~21
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=52ad48a0ce25d4d44ce82b7e28a35eb69598e5f1;p=users%2Fdwmw2%2Flinux.git

Input: HIL - do not call tasklet_disable right before tasklet_kill

We do not need to call tasklet_disable() before calling tasklet_kill() if
taskelt does not reschedult itself.

Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---

diff --git a/drivers/input/serio/hil_mlc.c b/drivers/input/serio/hil_mlc.c
index 0280167f09ac3..65605e4ef3cf6 100644
--- a/drivers/input/serio/hil_mlc.c
+++ b/drivers/input/serio/hil_mlc.c
@@ -1009,8 +1009,6 @@ static int __init hil_mlc_init(void)
 static void __exit hil_mlc_exit(void)
 {
 	del_timer_sync(&hil_mlcs_kicker);
-
-	tasklet_disable(&hil_mlcs_tasklet);
 	tasklet_kill(&hil_mlcs_tasklet);
 }