diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/virtio_console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 2a04daa9189e..a3f1f73bac3a 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
@@ -753,6 +753,8 @@ int init_port_console(struct port *port) | |||
753 | port->cons.hvc = hvc_alloc(port->cons.vtermno, 0, &hv_ops, PAGE_SIZE); | 753 | port->cons.hvc = hvc_alloc(port->cons.vtermno, 0, &hv_ops, PAGE_SIZE); |
754 | if (IS_ERR(port->cons.hvc)) { | 754 | if (IS_ERR(port->cons.hvc)) { |
755 | ret = PTR_ERR(port->cons.hvc); | 755 | ret = PTR_ERR(port->cons.hvc); |
756 | dev_err(port->dev, | ||
757 | "error %d allocating hvc for port\n", ret); | ||
756 | port->cons.hvc = NULL; | 758 | port->cons.hvc = NULL; |
757 | return ret; | 759 | return ret; |
758 | } | 760 | } |