aboutsummaryrefslogtreecommitdiffstats
path: root/src/console_check.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-02-23 17:06:34 -0500
committerBill Nottingham <notting@redhat.com>2011-02-23 17:06:34 -0500
commitbdbd88df9f62c481cce46b0b8654cf9a16c8995f (patch)
treecd23b59911805157f65e5c88b6468ba9f1ec5ce4 /src/console_check.c
parent267ee93bd19f16eabe79adaa299c287ea053d20a (diff)
downloadinitscripts-bdbd88df9f62c481cce46b0b8654cf9a16c8995f.tar
initscripts-bdbd88df9f62c481cce46b0b8654cf9a16c8995f.tar.gz
initscripts-bdbd88df9f62c481cce46b0b8654cf9a16c8995f.tar.bz2
initscripts-bdbd88df9f62c481cce46b0b8654cf9a16c8995f.tar.xz
initscripts-bdbd88df9f62c481cce46b0b8654cf9a16c8995f.zip
Fix OMAP patch (#678875)
Diffstat (limited to 'src/console_check.c')
-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;
}