Module Name: src
Committed By: dyoung
Date: Sun Dec 6 23:15:59 UTC 2009
Modified Files:
src/sys/dev/ic: com.c
Log Message:
Delete dead code.
To generate a diff of this commit:
cvs rdiff -u -r1.291 -r1.292 src/sys/dev/ic/com.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/com.c
diff -u src/sys/dev/ic/com.c:1.291 src/sys/dev/ic/com.c:1.292
--- src/sys/dev/ic/com.c:1.291 Mon Nov 23 02:13:46 2009
+++ src/sys/dev/ic/com.c Sun Dec 6 23:15:59 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.291 2009/11/23 02:13:46 rmind Exp $ */
+/* $NetBSD: com.c,v 1.292 2009/12/06 23:15:59 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.291 2009/11/23 02:13:46 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.292 2009/12/06 23:15:59 dyoung Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -619,6 +619,19 @@
com_enable_debugport(sc);
}
+#if 0
+static int
+comcngetc_detached(dev_t dev)
+{
+ return 0;
+}
+
+static void
+comcnputc_detached(dev_t dev, int c)
+{
+}
+#endif
+
int
com_detach(device_t self, int flags)
{
@@ -2395,6 +2408,11 @@
{
struct com_softc *sc = device_private(self);
+#if 0
+ if (ISSET(sc->sc_hwflags, COM_HW_CONSOLE) && cn_tab == &comcons)
+ cn_tab = &comcons_suspend;
+#endif
+
CSR_WRITE_1(&sc->sc_regs, COM_REG_IER, 0);
(void)CSR_READ_1(&sc->sc_regs, COM_REG_IIR);