aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/console_check.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/console_check.c b/src/console_check.c
index 84c7a926..8584f78e 100644
--- a/src/console_check.c
+++ b/src/console_check.c
@@ -28,6 +28,11 @@
#include <linux/serial.h>
#include <linux/serial_core.h>
+#ifndef PORT_OMAP
+/* from linux-2.6/include/linux/serial_core.h commit b612633b */
+#define PORT_OMAP 96
+#endif
+
struct speeds
{
speed_t speed;
@@ -122,7 +127,7 @@ char *serial_tty_name(int type) {
case PORT_MPC52xx:
return "ttyPSC";
case PORT_OMAP:
- return "ttySO";
+ return "ttyO";
default:
return NULL;
}