[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>
This commit is contained in:
parent
85edae14e4
commit
d856c66618
1 changed files with 6 additions and 0 deletions
|
@ -2326,6 +2326,12 @@ static struct uart_driver serial8250_reg = {
|
||||||
.cons = SERIAL8250_CONSOLE,
|
.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)
|
int __init early_serial_setup(struct uart_port *port)
|
||||||
{
|
{
|
||||||
if (port->line >= ARRAY_SIZE(serial8250_ports))
|
if (port->line >= ARRAY_SIZE(serial8250_ports))
|
||||||
|
|
Loading…
Add table
Reference in a new issue