Commit 22b94d1d authored by Allen Pais's avatar Allen Pais Committed by Greg Kroah-Hartman
Browse files

drivers: tty: mux: use setup_timer() helper.



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

Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f7bdbd2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -576,8 +576,7 @@ static int __init mux_init(void)

	if(port_cnt > 0) {
		/* Start the Mux timer */
		init_timer(&mux_timer);
		mux_timer.function = mux_poll;
		setup_timer(&mux_timer, mux_poll, 0UL);
		mod_timer(&mux_timer, jiffies + MUX_POLL_DELAY);

#ifdef CONFIG_SERIAL_MUX_CONSOLE