Input: locomokbd - use setup_timer
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
d8f2bed04c
commit
cfecc1ebdc
|
@ -264,9 +264,8 @@ static int locomokbd_probe(struct locomo_dev *dev)
|
|||
|
||||
spin_lock_init(&locomokbd->lock);
|
||||
|
||||
init_timer(&locomokbd->timer);
|
||||
locomokbd->timer.function = locomokbd_timer_callback;
|
||||
locomokbd->timer.data = (unsigned long) locomokbd;
|
||||
setup_timer(&locomokbd->timer, locomokbd_timer_callback,
|
||||
(unsigned long)locomokbd);
|
||||
|
||||
locomokbd->suspend_jiffies = jiffies;
|
||||
|
||||
|
|
Loading…
Reference in New Issue