Skip to content

Commit

Permalink
drivers: tty: mux: use setup_timer() helper.
Browse files Browse the repository at this point in the history
    Use setup_timer function instead of initializing timer with the
    function and data fields.

Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Allen Pais authored and Greg Kroah-Hartman committed Oct 3, 2017
1 parent 0f7bdbd commit 22b94d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/tty/serial/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22b94d1

Please sign in to comment.