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

Commit cd7b917c authored by Jan Stourac's avatar Jan Stourac Committed by Bartlomiej Zolnierkiewicz
Browse files

video/console: use setup_timer and mod_timer instead of init_timer



Use setup_timer and mod_timer functions instead of initializing timer with
the function init_timer and data fields.

Signed-off-by: default avatarJan Stourac <xstourac@gmail.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 561eb9d0
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -412,11 +412,9 @@ static void fbcon_add_cursor_timer(struct fb_info *info)
		if (!info->queue.func)
			INIT_WORK(&info->queue, fb_flashcursor);

		init_timer(&ops->cursor_timer);
		ops->cursor_timer.function = cursor_timer_handler;
		ops->cursor_timer.expires = jiffies + ops->cur_blink_jiffies;
		ops->cursor_timer.data = (unsigned long ) info;
		add_timer(&ops->cursor_timer);
		setup_timer(&ops->cursor_timer, cursor_timer_handler,
			    (unsigned long) info);
		mod_timer(&ops->cursor_timer, jiffies + ops->cur_blink_jiffies);
		ops->flags |= FBCON_FLAGS_CURSOR_TIMER;
	}
}