Commit 177b508f authored by Allen Pais's avatar Allen Pais Committed by Greg Kroah-Hartman

drivers: tty: imx: 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>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a0983c74
...@@ -2118,9 +2118,7 @@ static int serial_imx_probe(struct platform_device *pdev) ...@@ -2118,9 +2118,7 @@ static int serial_imx_probe(struct platform_device *pdev)
sport->port.rs485_config = imx_rs485_config; sport->port.rs485_config = imx_rs485_config;
sport->port.rs485.flags |= SER_RS485_RTS_ON_SEND; sport->port.rs485.flags |= SER_RS485_RTS_ON_SEND;
sport->port.flags = UPF_BOOT_AUTOCONF; sport->port.flags = UPF_BOOT_AUTOCONF;
init_timer(&sport->timer); setup_timer(&sport->timer, imx_timeout, (unsigned long)sport);
sport->timer.function = imx_timeout;
sport->timer.data = (unsigned long)sport;
sport->gpios = mctrl_gpio_init(&sport->port, 0); sport->gpios = mctrl_gpio_init(&sport->port, 0);
if (IS_ERR(sport->gpios)) if (IS_ERR(sport->gpios))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment