xen/hvc: allow xenboot console to be used again
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 1 Oct 2013 18:00:49 +0000 (19:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 01:14:30 +0000 (18:14 -0700)
commit38038ddd5b625af75f038501ae5e0f07ed892f95
treee5d76541f40edf7660110869ed0001e5a98f1722
parentdaf2f72265f68c1c1100d1bc6a4c4faed0344be2
xen/hvc: allow xenboot console to be used again

commit a9fbf4d591da6cd1d3eaab826c7c15f77fc8f6a3 upstream.

Commit d0380e6c3c0f6edb986d8798a23acfaf33d5df23 (early_printk:
consolidate random copies of identical code) added in 3.10 introduced
a check for con->index == -1 in early_console_register().

Initialize index to -1 for the xenboot console so earlyprintk=xen
works again.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_xen.c