tty: serial: altera_uart: remove early_altera_uart_setup
authorTobias Klauser <tklauser@distanz.ch>
Wed, 8 Feb 2012 13:35:46 +0000 (14:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 17:04:23 +0000 (09:04 -0800)
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>
drivers/tty/serial/altera_uart.c
include/linux/altera_uart.h

index 1d04c5037f25e4a8ccb998141c4a56e37abaa77b..217833e94b5bd781e8e21490dd30be3662f889d7 100644 (file)
@@ -403,29 +403,6 @@ static struct altera_uart altera_uart_ports[CONFIG_SERIAL_ALTERA_UART_MAXPORTS];
 
 #if defined(CONFIG_SERIAL_ALTERA_UART_CONSOLE)
 
-int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp)
-{
-       struct uart_port *port;
-       int i;
-
-       for (i = 0; i < CONFIG_SERIAL_ALTERA_UART_MAXPORTS && platp[i].mapbase; i++) {
-               port = &altera_uart_ports[i].port;
-
-               port->line = i;
-               port->type = PORT_ALTERA_UART;
-               port->mapbase = platp[i].mapbase;
-               port->membase = ioremap(port->mapbase, ALTERA_UART_SIZE);
-               port->iotype = SERIAL_IO_MEM;
-               port->irq = platp[i].irq;
-               port->uartclk = platp[i].uartclk;
-               port->flags = UPF_BOOT_AUTOCONF;
-               port->ops = &altera_uart_ops;
-               port->private_data = platp;
-       }
-
-       return 0;
-}
-
 static void altera_uart_console_putc(struct uart_port *port, const char c)
 {
        while (!(altera_uart_readl(port, ALTERA_UART_STATUS_REG) &
index a10a907919764811678f994819f053efb379a9e8..c022c82db7cac72baae890d7e0be4ca88bb3f127 100644 (file)
@@ -5,8 +5,6 @@
 #ifndef        __ALTUART_H
 #define        __ALTUART_H
 
-#include <linux/init.h>
-
 struct altera_uart_platform_uart {
        unsigned long mapbase;  /* Physical address base */
        unsigned int irq;       /* Interrupt vector */
@@ -14,6 +12,4 @@ struct altera_uart_platform_uart {
        unsigned int bus_shift; /* Bus shift (address stride) */
 };
 
-int __init early_altera_uart_setup(struct altera_uart_platform_uart *platp);
-
 #endif /* __ALTUART_H */