[S390] kvm: use console_initcall() to initialize s390 virtio console
Use a console_initcall() to initialize the s390 virtio console and clean up s390 console initialization in setup.c. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
68d36bdbf6
commit
c4de0c1a18
@@ -403,10 +403,14 @@ static __init int early_put_chars(u32 vtermno, const char *buf, int count)
|
||||
return len;
|
||||
}
|
||||
|
||||
void __init s390_virtio_console_init(void)
|
||||
static int __init s390_virtio_console_init(void)
|
||||
{
|
||||
virtio_cons_early_init(early_put_chars);
|
||||
if (!MACHINE_IS_KVM)
|
||||
return -ENODEV;
|
||||
return virtio_cons_early_init(early_put_chars);
|
||||
}
|
||||
console_initcall(s390_virtio_console_init);
|
||||
|
||||
|
||||
/*
|
||||
* We do this after core stuff, but before the drivers.
|
||||
|
||||
Reference in New Issue
Block a user