From: Russell King Date: Thu, 23 Feb 2006 10:22:13 +0000 (+0000) Subject: [SERIAL] Add comment about early_serial_setup() X-Git-Tag: v2.6.16-rc5~20^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d856c66618f953fc3cd1e613226d5f098ad322c8;p=linux-2.6-omap-h63xx.git [SERIAL] Add comment about early_serial_setup() early_serial_setup() must not be called after console initialisation. Add a comment prior to the function explicitly stating this. Signed-off-by: Russell King --- diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 244e8ff1197..7aca22c9976 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c @@ -2326,6 +2326,12 @@ static struct uart_driver serial8250_reg = { .cons = SERIAL8250_CONSOLE, }; +/* + * early_serial_setup - early registration for 8250 ports + * + * Setup an 8250 port structure prior to console initialisation. Use + * after console initialisation will cause undefined behaviour. + */ int __init early_serial_setup(struct uart_port *port) { if (port->line >= ARRAY_SIZE(serial8250_ports))