mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
of: earlycon: Fixup earlycon console name and index
Use the console name embedded in the OF earlycon table by the OF_EARLYCON_DECLARE() macro to initialize the struct console 'name' and 'index' fields. Acked-by: Rob Herring <[email protected]> Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
cda64e6824
commit
05d961320b
3 changed files with 5 additions and 6 deletions
|
|
@ -838,7 +838,7 @@ static int __init early_init_dt_scan_chosen_serial(void)
|
|||
if (addr == OF_BAD_ADDR)
|
||||
return -ENXIO;
|
||||
|
||||
of_setup_earlycon(addr, match->setup);
|
||||
of_setup_earlycon(addr, match);
|
||||
return 0;
|
||||
}
|
||||
return -ENODEV;
|
||||
|
|
|
|||
Loading…
Reference in a new issue