diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-22 04:26:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-03 14:28:36 -0400 |
commit | a386ab2b286476f4e87b974f917ec80cb9b87cab (patch) | |
tree | a3a3f0e98497e341220cdc2e405fd7af5693417e /drivers/tty/vcc.c | |
parent | 22b94d1d99a71e201b28f135b271cb63526f8bd1 (diff) |
drivers: tty: vcc: 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>
Diffstat (limited to 'drivers/tty/vcc.c')
-rw-r--r-- | drivers/tty/vcc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c index ef01d24858cd..954b190526e7 100644 --- a/drivers/tty/vcc.c +++ b/drivers/tty/vcc.c | |||
@@ -645,13 +645,8 @@ static int vcc_probe(struct vio_dev *vdev, const struct vio_device_id *id) | |||
645 | if (rv) | 645 | if (rv) |
646 | goto free_domain; | 646 | goto free_domain; |
647 | 647 | ||
648 | init_timer(&port->rx_timer); | 648 | setup_timer(&port->rx_timer, vcc_rx_timer, port->index); |
649 | port->rx_timer.function = vcc_rx_timer; | 649 | setup_timer(&port->tx_timer, vcc_tx_timer, port->index); |
650 | port->rx_timer.data = port->index; | ||
651 | |||
652 | init_timer(&port->tx_timer); | ||
653 | port->tx_timer.function = vcc_tx_timer; | ||
654 | port->tx_timer.data = port->index; | ||
655 | 650 | ||
656 | dev_set_drvdata(&vdev->dev, port); | 651 | dev_set_drvdata(&vdev->dev, port); |
657 | 652 | ||