Commit cfecc1eb authored by Geliang Tang's avatar Geliang Tang Committed by Dmitry Torokhov

Input: locomokbd - use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d8f2bed0
...@@ -264,9 +264,8 @@ static int locomokbd_probe(struct locomo_dev *dev) ...@@ -264,9 +264,8 @@ static int locomokbd_probe(struct locomo_dev *dev)
spin_lock_init(&locomokbd->lock); spin_lock_init(&locomokbd->lock);
init_timer(&locomokbd->timer); setup_timer(&locomokbd->timer, locomokbd_timer_callback,
locomokbd->timer.function = locomokbd_timer_callback; (unsigned long)locomokbd);
locomokbd->timer.data = (unsigned long) locomokbd;
locomokbd->suspend_jiffies = jiffies; locomokbd->suspend_jiffies = jiffies;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment