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

Input: gameport - 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 c9a9b72f
...@@ -542,9 +542,8 @@ static void gameport_init_port(struct gameport *gameport) ...@@ -542,9 +542,8 @@ static void gameport_init_port(struct gameport *gameport)
INIT_LIST_HEAD(&gameport->node); INIT_LIST_HEAD(&gameport->node);
spin_lock_init(&gameport->timer_lock); spin_lock_init(&gameport->timer_lock);
init_timer(&gameport->poll_timer); setup_timer(&gameport->poll_timer, gameport_run_poll_handler,
gameport->poll_timer.function = gameport_run_poll_handler; (unsigned long)gameport);
gameport->poll_timer.data = (unsigned long)gameport;
} }
/* /*
......
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