Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <geliangtang@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent cfecc1eb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)