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

drivers: tty: vcc: 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 22b94d1d
......@@ -645,13 +645,8 @@ static int vcc_probe(struct vio_dev *vdev, const struct vio_device_id *id)
if (rv)
goto free_domain;
init_timer(&port->rx_timer);
port->rx_timer.function = vcc_rx_timer;
port->rx_timer.data = port->index;
init_timer(&port->tx_timer);
port->tx_timer.function = vcc_tx_timer;
port->tx_timer.data = port->index;
setup_timer(&port->rx_timer, vcc_rx_timer, port->index);
setup_timer(&port->tx_timer, vcc_tx_timer, port->index);
dev_set_drvdata(&vdev->dev, port);
......
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