Message ID | 1301279675-16519-1-git-send-email-iwamatsu@nigauri.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index eb7958c..cc4c329 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1836,6 +1836,9 @@ static int __devinit serial_console_setup(struct console *co, char *options) sci_port = &sci_ports[co->index]; port = &sci_port->port; + if (port->ops == NULL) + return -ENODEV; + ret = sci_remap_port(port); if (unlikely(ret != 0)) return ret;