diff options
author | Geliang Tang <geliangtang@gmail.com> | 2017-04-10 23:38:30 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-04-10 23:41:40 -0400 |
commit | bee84493318843ffba9705924469369b9b244ddf (patch) | |
tree | 0c7707953ea1dc5c9a0516fdcea214dffce2ee40 | |
parent | cfecc1ebdc9315ef6164b396629ff2936dbba0aa (diff) |
Input: turbografx - 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>
-rw-r--r-- | drivers/input/joystick/turbografx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/joystick/turbografx.c b/drivers/input/joystick/turbografx.c index 77f575dd0901..a1fdc75a438d 100644 --- a/drivers/input/joystick/turbografx.c +++ b/drivers/input/joystick/turbografx.c | |||
@@ -200,9 +200,7 @@ static void tgfx_attach(struct parport *pp) | |||
200 | mutex_init(&tgfx->sem); | 200 | mutex_init(&tgfx->sem); |
201 | tgfx->pd = pd; | 201 | tgfx->pd = pd; |
202 | tgfx->parportno = pp->number; | 202 | tgfx->parportno = pp->number; |
203 | init_timer(&tgfx->timer); | 203 | setup_timer(&tgfx->timer, tgfx_timer, (long)tgfx); |
204 | tgfx->timer.data = (long) tgfx; | ||
205 | tgfx->timer.function = tgfx_timer; | ||
206 | 204 | ||
207 | for (i = 0; i < n_devs; i++) { | 205 | for (i = 0; i < n_devs; i++) { |
208 | if (n_buttons[i] < 1) | 206 | if (n_buttons[i] < 1) |