OSDN Git Service

serial: xuartps: add __init to earlycon write method
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 7 May 2015 09:55:40 +0000 (18:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 17:10:08 +0000 (19:10 +0200)
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>
drivers/tty/serial/xilinx_uartps.c

index 3ddbac7..009e0db 100644 (file)
@@ -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;