of/serial: move earlycon early_param handling to serial

We have multiple "earlycon" early_param handlers - merge the DT one into
the main earlycon one.  It's a cleanup that also will be useful
to defer setting up DT console until ACPI/DT decision is made.

Rename the exported function to avoid clashing with the function from
arch/microblaze/kernel/prom.c

Signed-off-by: Leif Lindholm <[email protected]>
Signed-off-by: Aleksey Makarov <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Peter Hurley <[email protected]>
Tested-by: Kefeng Wang <[email protected]>
Tested-by: Christopher Covington <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Leif Lindholm 2016-09-27 23:54:12 +03:00 • committed by Greg Kroah-Hartman
commit d503187b6c
3 changed files with 5 additions and 11 deletions

View file

@ -924,7 +924,7 @@ static inline void early_init_dt_check_for_initrd(unsigned long node)
#ifdef CONFIG_SERIAL_EARLYCON
static int __init early_init_dt_scan_chosen_serial(void)
int __init early_init_dt_scan_chosen_stdout(void)
{
int offset;
const char *p, *q, *options = NULL;
@ -968,15 +968,6 @@ static int __init early_init_dt_scan_chosen_serial(void)
}
return -ENODEV;
}
static int __init setup_of_earlycon(char *buf)
{
if (buf)
return 0;
return early_init_dt_scan_chosen_serial();
}
early_param("earlycon", setup_of_earlycon);
#endif
/**