]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/serial_core.h
mn10300: allocate serial port UART IDs for on-chip serial ports
[linux-2.6-omap-h63xx.git] / include / linux / serial_core.h
index 6a5203fb9cf1fdae9b7bbb9ff8cd6e36de374592..1a0b6cf83ff1b7954af90c1d0df0dda6a7de621b 100644 (file)
 #define PORT_MCF       78
 
 
+/* MN10300 on-chip UART numbers */
+#define PORT_MN10300           80
+#define PORT_MN10300_CTS       81
+
 #ifdef __KERNEL__
 
 #include <linux/compiler.h>
@@ -437,7 +441,7 @@ uart_handle_sysrq_char(struct uart_port *port, unsigned int ch)
 #ifdef SUPPORT_SYSRQ
        if (port->sysrq) {
                if (ch && time_before(jiffies, port->sysrq)) {
-                       handle_sysrq(ch, port->info->tty);
+                       handle_sysrq(ch, port->info ? port->info->tty : NULL);
                        port->sysrq = 0;
                        return 1;
                }