diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-22 13:56:43 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-03 20:28:35 +0200 |
commit | 22b94d1d99a71e201b28f135b271cb63526f8bd1 (patch) | |
tree | 1f23621a8cec7db087bddd40c7e39e25b70aa4ea | |
parent | 0f7bdbd2b3518e2698048bb5346b542e7cbb542a (diff) |
drivers: tty: mux: use setup_timer() helper.
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>
-rw-r--r-- | drivers/tty/serial/mux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c index 2bff69e70e4b..a78983734825 100644 --- a/drivers/tty/serial/mux.c +++ b/drivers/tty/serial/mux.c @@ -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 |