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>
This commit is contained in:
parent
9b363c83c6
commit
65f8824f55
|
@ -1646,9 +1646,7 @@ static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
skb_queue_head_init(&dlci->skb_list);
|
skb_queue_head_init(&dlci->skb_list);
|
||||||
init_timer(&dlci->t1);
|
setup_timer(&dlci->t1, gsm_dlci_t1, (unsigned long)dlci);
|
||||||
dlci->t1.function = gsm_dlci_t1;
|
|
||||||
dlci->t1.data = (unsigned long)dlci;
|
|
||||||
tty_port_init(&dlci->port);
|
tty_port_init(&dlci->port);
|
||||||
dlci->port.ops = &gsm_port_ops;
|
dlci->port.ops = &gsm_port_ops;
|
||||||
dlci->gsm = gsm;
|
dlci->gsm = gsm;
|
||||||
|
|
Loading…
Reference in New Issue