diff options
Diffstat (limited to 'drivers/s390/kvm/kvm_virtio.c')
-rw-r--r-- | drivers/s390/kvm/kvm_virtio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index b67ee0408267..47cccd52aae8 100644 --- a/drivers/s390/kvm/kvm_virtio.c +++ b/drivers/s390/kvm/kvm_virtio.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/io.h> | 25 | #include <asm/io.h> |
26 | #include <asm/kvm_para.h> | 26 | #include <asm/kvm_para.h> |
27 | #include <asm/kvm_virtio.h> | 27 | #include <asm/kvm_virtio.h> |
28 | #include <asm/sclp.h> | ||
28 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
29 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
30 | 31 | ||
@@ -468,7 +469,7 @@ static __init int early_put_chars(u32 vtermno, const char *buf, int count) | |||
468 | 469 | ||
469 | static int __init s390_virtio_console_init(void) | 470 | static int __init s390_virtio_console_init(void) |
470 | { | 471 | { |
471 | if (!MACHINE_IS_KVM) | 472 | if (sclp_has_vt220() || sclp_has_linemode()) |
472 | return -ENODEV; | 473 | return -ENODEV; |
473 | return virtio_cons_early_init(early_put_chars); | 474 | return virtio_cons_early_init(early_put_chars); |
474 | } | 475 | } |