Merge branch 'p-ti-linux-3.8.y' into p-ti-android-3.8.y
[android-sdk/kernel-video.git] / include / linux / serial_core.h
index 6cf2d59dbcbe5b81f8a942897a84e17e0d0d8cae..c52e642fac08fee0c08a027895e716efb16af075 100644 (file)
 #include <linux/pps_kernel.h>
 #include <uapi/linux/serial_core.h>
 
+#ifdef CONFIG_SERIAL_CORE_CONSOLE
+#define uart_console(port) \
+       ((port)->cons && (port)->cons->index == (port)->line)
+#else
+#define uart_console(port)      (0)
+#endif
+
 struct uart_port;
 struct serial_struct;
 struct device;