diff options
Diffstat (limited to 'drivers/tty/serial/pnx8xxx_uart.c')
-rw-r--r-- | drivers/tty/serial/pnx8xxx_uart.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/tty/serial/pnx8xxx_uart.c b/drivers/tty/serial/pnx8xxx_uart.c index dab2668d3879..f8812389b8a8 100644 --- a/drivers/tty/serial/pnx8xxx_uart.c +++ b/drivers/tty/serial/pnx8xxx_uart.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * UART driver for PNX8XXX SoCs | 3 | * UART driver for PNX8XXX SoCs |
3 | * | 4 | * |
@@ -7,11 +8,6 @@ | |||
7 | * | 8 | * |
8 | * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. | 9 | * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o. |
9 | * Copyright (C) 2000 Deep Blue Solutions Ltd. | 10 | * Copyright (C) 2000 Deep Blue Solutions Ltd. |
10 | * | ||
11 | * This file is licensed under the terms of the GNU General Public License | ||
12 | * version 2. This program is licensed "as is" without any warranty of | ||
13 | * any kind, whether express or implied. | ||
14 | * | ||
15 | */ | 11 | */ |
16 | 12 | ||
17 | #if defined(CONFIG_SERIAL_PNX8XXX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) | 13 | #if defined(CONFIG_SERIAL_PNX8XXX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) |
@@ -666,9 +662,8 @@ static void __init pnx8xxx_init_ports(void) | |||
666 | first = 0; | 662 | first = 0; |
667 | 663 | ||
668 | for (i = 0; i < NR_PORTS; i++) { | 664 | for (i = 0; i < NR_PORTS; i++) { |
669 | init_timer(&pnx8xxx_ports[i].timer); | 665 | setup_timer(&pnx8xxx_ports[i].timer, pnx8xxx_timeout, |
670 | pnx8xxx_ports[i].timer.function = pnx8xxx_timeout; | 666 | (unsigned long)&pnx8xxx_ports[i]); |
671 | pnx8xxx_ports[i].timer.data = (unsigned long)&pnx8xxx_ports[i]; | ||
672 | pnx8xxx_ports[i].port.ops = &pnx8xxx_pops; | 667 | pnx8xxx_ports[i].port.ops = &pnx8xxx_pops; |
673 | } | 668 | } |
674 | } | 669 | } |