xencons: generalize use of add_preferred_console() Changeset 762:a070228ac76e ("add hvc compatibility mode to xencons" added this call just for the HVC case, without giving any reason why HVC would be special in this regard. Use the call for all cases. Signed-off-by: Jan Beulich --- a/drivers/xen/console/console.c +++ b/drivers/xen/console/console.c @@ -214,8 +214,6 @@ static int __init xen_console_init(void) strcpy(kcons_info.name, "hvc"); if (xc_num == -1) xc_num = 0; - if (!is_initial_xendomain()) - add_preferred_console(kcons_info.name, xc_num, NULL); break; case XC_SERIAL: @@ -236,6 +234,8 @@ static int __init xen_console_init(void) wbuf = alloc_bootmem(wbuf_size); + if (!is_initial_xendomain()) + add_preferred_console(kcons_info.name, xc_num, NULL); register_console(&kcons_info); out: