提交 a386ab2b 编写于 作者: A Allen Pais 提交者: 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: NAllen Pais <allen.lkml@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册