Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Masahiro Yamada and committed by
Greg Kroah-Hartman
54585ba0 59cfc45f

+2 -1
+2 -1
drivers/tty/serial/xilinx_uartps.c
··· 1075 1075 writel(ch, port->membase + CDNS_UART_FIFO_OFFSET); 1076 1076 } 1077 1077 1078 - static void cdns_early_write(struct console *con, const char *s, unsigned n) 1078 + static void __init cdns_early_write(struct console *con, const char *s, 1079 + unsigned n) 1079 1080 { 1080 1081 struct earlycon_device *dev = con->data; 1081 1082