summaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_gsm.c
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-22 13:56:50 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-03 20:28:36 +0200
commit65f8824f557b5f9abdf4548f2255e4acdd1d2328 (patch)
tree85a682298568e62afe253c93736a43f31edabd3a /drivers/tty/n_gsm.c
parent9b363c83c6c4d791af8b57b8c38bc11e57bd0927 (diff)
downloadlinux-65f8824f557b5f9abdf4548f2255e4acdd1d2328.tar.bz2
drivers: tty: n_gsm: 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/n_gsm.c')
-rw-r--r--drivers/tty/n_gsm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
index 0a3c9665e015..33530d8cb81d 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -1646,9 +1646,7 @@ static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr)
}
skb_queue_head_init(&dlci->skb_list);
- init_timer(&dlci->t1);
- dlci->t1.function = gsm_dlci_t1;
- dlci->t1.data = (unsigned long)dlci;
+ setup_timer(&dlci->t1, gsm_dlci_t1, (unsigned long)dlci);
tty_port_init(&dlci->port);
dlci->port.ops = &gsm_port_ops;
dlci->gsm = gsm;