diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-05-07 11:55:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-10 19:10:08 +0200 |
commit | 54585ba0362a121f4e3b2fcddf62f28dbd1cf1f5 (patch) | |
tree | dc4a1c2a572be2086fd35038ae2381e32fd398da /drivers/tty/serial/xilinx_uartps.c | |
parent | serial: 8250: Do nothing if nr_uarts=0 (diff) | |
download | linux-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.c | 3 |
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; |