summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/xilinx_uartps.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-05-07 11:55:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-10 19:10:08 +0200
commit54585ba0362a121f4e3b2fcddf62f28dbd1cf1f5 (patch)
treedc4a1c2a572be2086fd35038ae2381e32fd398da /drivers/tty/serial/xilinx_uartps.c
parentserial: 8250: Do nothing if nr_uarts=0 (diff)
downloadlinux-54585ba0362a121f4e3b2fcddf62f28dbd1cf1f5.tar.xz
linux-54585ba0362a121f4e3b2fcddf62f28dbd1cf1f5.zip
serial: xuartps: add __init to earlycon write method
Early console functions are only used during the early boot stage. This change just saves a small amount of memory footprint. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/xilinx_uartps.c')
-rw-r--r--drivers/tty/serial/xilinx_uartps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index 3ddbac767db3..009e0dbc12d2 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -1075,7 +1075,8 @@ static void cdns_uart_console_putchar(struct uart_port *port, int ch)
writel(ch, port->membase + CDNS_UART_FIFO_OFFSET);
}
-static void cdns_early_write(struct console *con, const char *s, unsigned n)
+static void __init cdns_early_write(struct console *con, const char *s,
+ unsigned n)
{
struct earlycon_device *dev = con->data;