[SERIAL] Add comment about early_serial_setup()
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 23 Feb 2006 10:22:13 +0000 (10:22 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 23 Feb 2006 10:22:13 +0000 (10:22 +0000)
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 <rmk+kernel@arm.linux.org.uk>
drivers/serial/8250.c

index 244e8ff119777d1c9a237ae89209441fd9350c52..7aca22c9976d0f37a9d8f3e0b0cf6a41d6a3d787 100644 (file)
@@ -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))