提交 bee84493 编写于 作者: G Geliang Tang 提交者: Dmitry Torokhov

Input: turbografx - use setup_timer

Use setup_timer() instead of init_timer() to simplify the code.
Signed-off-by: NGeliang Tang <geliangtang@gmail.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 cfecc1eb
...@@ -200,9 +200,7 @@ static void tgfx_attach(struct parport *pp) ...@@ -200,9 +200,7 @@ static void tgfx_attach(struct parport *pp)
mutex_init(&tgfx->sem); mutex_init(&tgfx->sem);
tgfx->pd = pd; tgfx->pd = pd;
tgfx->parportno = pp->number; tgfx->parportno = pp->number;
init_timer(&tgfx->timer); setup_timer(&tgfx->timer, tgfx_timer, (long)tgfx);
tgfx->timer.data = (long) tgfx;
tgfx->timer.function = tgfx_timer;
for (i = 0; i < n_devs; i++) { for (i = 0; i < n_devs; i++) {
if (n_buttons[i] < 1) if (n_buttons[i] < 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册