diff options
author | Geliang Tang | 2017-04-11 05:38:30 +0200 |
---|---|---|
committer | Dmitry Torokhov | 2017-04-11 05:41:40 +0200 |
commit | bee84493318843ffba9705924469369b9b244ddf (patch) | |
tree | 0c7707953ea1dc5c9a0516fdcea214dffce2ee40 /drivers | |
parent | Input: locomokbd - use setup_timer (diff) | |
download | kernel-qcow2-linux-bee84493318843ffba9705924469369b9b244ddf.tar.gz kernel-qcow2-linux-bee84493318843ffba9705924469369b9b244ddf.tar.xz kernel-qcow2-linux-bee84493318843ffba9705924469369b9b244ddf.zip |
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>
Diffstat (limited to 'drivers')
-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) mutex_init(&tgfx->sem); tgfx->pd = pd; tgfx->parportno = pp->number; - init_timer(&tgfx->timer); - tgfx->timer.data = (long) tgfx; - tgfx->timer.function = tgfx_timer; + setup_timer(&tgfx->timer, tgfx_timer, (long)tgfx); for (i = 0; i < n_devs; i++) { if (n_buttons[i] < 1) |