aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_gsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/n_gsm.c')
-rw-r--r--drivers/tty/n_gsm.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
index 0a3c9665e015..3a39eb685c69 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -1,20 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * n_gsm.c GSM 0710 tty multiplexor 3 * n_gsm.c GSM 0710 tty multiplexor
3 * Copyright (c) 2009/10 Intel Corporation 4 * Copyright (c) 2009/10 Intel Corporation
4 * 5 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 *
18 * * THIS IS A DEVELOPMENT SNAPSHOT IT IS NOT A FINAL RELEASE * 6 * * THIS IS A DEVELOPMENT SNAPSHOT IT IS NOT A FINAL RELEASE *
19 * 7 *
20 * TO DO: 8 * TO DO:
@@ -1646,9 +1634,7 @@ static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr)
1646 } 1634 }
1647 1635
1648 skb_queue_head_init(&dlci->skb_list); 1636 skb_queue_head_init(&dlci->skb_list);
1649 init_timer(&dlci->t1); 1637 setup_timer(&dlci->t1, gsm_dlci_t1, (unsigned long)dlci);
1650 dlci->t1.function = gsm_dlci_t1;
1651 dlci->t1.data = (unsigned long)dlci;
1652 tty_port_init(&dlci->port); 1638 tty_port_init(&dlci->port);
1653 dlci->port.ops = &gsm_port_ops; 1639 dlci->port.ops = &gsm_port_ops;
1654 dlci->gsm = gsm; 1640 dlci->gsm = gsm;