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

@ -732,7 +732,7 @@ int __init add_preferred_console(char *name, int idx, char *options)
return 0;
}
int __init update_console_cmdline(char *name, int idx, char *name_new, int idx_new, char *options)
int update_console_cmdline(char *name, int idx, char *name_new, int idx_new, char *options)
{
struct console_cmdline *c;
int i;