Commit 3f5dc70721af68b76ad544b0c61fea365d67c041
Committed by
Greg Kroah-Hartman
1 parent
d3a532a9c6
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
tty: serial: altera_uart: remove early_altera_uart_setup
The function has no users inside the tree and the nios2 (out-of-mainline) port doesn't use it either (anymore). Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 2 changed files with 0 additions and 27 deletions Side-by-side Diff
drivers/tty/serial/altera_uart.c
... | ... | @@ -403,29 +403,6 @@ |
403 | 403 | |
404 | 404 | #if defined(CONFIG_SERIAL_ALTERA_UART_CONSOLE) |
405 | 405 | |
406 | -int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp) | |
407 | -{ | |
408 | - struct uart_port *port; | |
409 | - int i; | |
410 | - | |
411 | - for (i = 0; i < CONFIG_SERIAL_ALTERA_UART_MAXPORTS && platp[i].mapbase; i++) { | |
412 | - port = &altera_uart_ports[i].port; | |
413 | - | |
414 | - port->line = i; | |
415 | - port->type = PORT_ALTERA_UART; | |
416 | - port->mapbase = platp[i].mapbase; | |
417 | - port->membase = ioremap(port->mapbase, ALTERA_UART_SIZE); | |
418 | - port->iotype = SERIAL_IO_MEM; | |
419 | - port->irq = platp[i].irq; | |
420 | - port->uartclk = platp[i].uartclk; | |
421 | - port->flags = UPF_BOOT_AUTOCONF; | |
422 | - port->ops = &altera_uart_ops; | |
423 | - port->private_data = platp; | |
424 | - } | |
425 | - | |
426 | - return 0; | |
427 | -} | |
428 | - | |
429 | 406 | static void altera_uart_console_putc(struct uart_port *port, const char c) |
430 | 407 | { |
431 | 408 | while (!(altera_uart_readl(port, ALTERA_UART_STATUS_REG) & |
include/linux/altera_uart.h
... | ... | @@ -5,16 +5,12 @@ |
5 | 5 | #ifndef __ALTUART_H |
6 | 6 | #define __ALTUART_H |
7 | 7 | |
8 | -#include <linux/init.h> | |
9 | - | |
10 | 8 | struct altera_uart_platform_uart { |
11 | 9 | unsigned long mapbase; /* Physical address base */ |
12 | 10 | unsigned int irq; /* Interrupt vector */ |
13 | 11 | unsigned int uartclk; /* UART clock rate */ |
14 | 12 | unsigned int bus_shift; /* Bus shift (address stride) */ |
15 | 13 | }; |
16 | - | |
17 | -int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp); | |
18 | 14 | |
19 | 15 | #endif /* __ALTUART_H */ |