serial: fix 8250 early console setup

the early setup function serial8250_console_early_setup() can be called
from non __init code (eg. hotpluggable serial ports like serial_cs) so
remove the __init from the call chain to avoid crashes.

Signed-off-by: Daniel Ritz <[email protected]>
Cc: Yinghai Lu <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Daniel Ritz 2007-08-03 16:07:43 +02:00 • committed by Linus Torvalds
commit b6b1d87785
3 changed files with 3 additions and 3 deletions

View file

@ -2514,7 +2514,7 @@ static int __init serial8250_console_setup(struct console *co, char *options)
return uart_set_options(port, co, baud, parity, bits, flow);
}
static int __init serial8250_console_early_setup(void)
static int serial8250_console_early_setup(void)
{
return serial8250_find_port_for_earlycon();
}

View file

@ -227,7 +227,7 @@ int __init setup_early_serial8250_console(char *cmdline)
return 0;
}
int __init serial8250_find_port_for_earlycon(void)
int serial8250_find_port_for_earlycon(void)
{
struct early_serial8250_device *device = &early_device;
struct uart_port *port = &device->port;