Commit bee84493 authored by Geliang Tang's avatar Geliang Tang Committed by Dmitry Torokhov
Browse files

Input: turbografx - use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.

Signed-off-by: default avatarGeliang Tang <>
Signed-off-by: default avatarDmitry Torokhov <>
parent cfecc1eb
......@@ -200,9 +200,7 @@ static void tgfx_attach(struct parport *pp)
tgfx->pd = pd;
tgfx->parportno = pp->number;
tgfx-> = (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)
Supports Markdown
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