summaryrefslogtreecommitdiffstats
path: root/drivers/serial/8250.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-02-23 10:22:13 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-02-23 10:22:13 +0000
commitd856c66618f953fc3cd1e613226d5f098ad322c8 (patch)
treedce2070e912327921ad2d1635eaa0bf2cfb12047 /drivers/serial/8250.c
parent85edae14e4ee5e68cf037e9e4bca7498ea16874d (diff)
downloadop-kernel-dev-d856c66618f953fc3cd1e613226d5f098ad322c8.zip
op-kernel-dev-d856c66618f953fc3cd1e613226d5f098ad322c8.tar.gz
[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 <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r--drivers/serial/8250.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index 244e8ff..7aca22c 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))
OpenPOWER on IntegriCloud