aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-01-18 06:05:23 -0500
committerRusty Russell <rusty@rustcorp.com.au>2010-02-23 22:53:02 -0500
commit298add723aecd7af461319fe815d935ef2c40d78 (patch)
tree506f14ae7e3a0b560b5c7979447ff3345eac216e /drivers/char/virtio_console.c
parentd99393effd76571cf2c4a07cbb6e86d41855a8fa (diff)
virtio: console: show error message if hvc_alloc fails for console ports
Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r--drivers/char/virtio_console.c2
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 }