summaryrefslogtreecommitdiff
path: root/sys/dev/ic/com.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-08 21:18:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-05-08 21:18:19 +0000
commitec76778bae590cc6a4cf85e411ed98cbaa49d5ea (patch)
treef6dfaa92374102afbbe82a17d82bcd1cd01f6db1 /sys/dev/ic/com.c
parent137ae27d67b5c55b00a6c986ed33850da12699e9 (diff)
move com_activate() to where it belongs
Diffstat (limited to 'sys/dev/ic/com.c')
-rw-r--r--sys/dev/ic/com.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 9a8d0539344..b38725ba57e 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.113 2007/05/08 20:33:07 deraadt Exp $ */
+/* $OpenBSD: com.c,v 1.114 2007/05/08 21:18:18 deraadt Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*
@@ -200,39 +200,6 @@ comprobe1(iot, ioh)
#endif
int
-com_activate(self, act)
- struct device *self;
- enum devact act;
-{
- struct com_softc *sc = (struct com_softc *)self;
- int s, rv = 0;
-
- s = spltty();
- switch (act) {
- case DVACT_ACTIVATE:
- break;
-
- case DVACT_DEACTIVATE:
-#ifdef KGDB
- if (sc->sc_hwflags & (COM_HW_CONSOLE|COM_HW_KGDB)) {
-#else
- if (sc->sc_hwflags & COM_HW_CONSOLE) {
-#endif /* KGDB */
- rv = EBUSY;
- break;
- }
-
- if (sc->disable != NULL && sc->enabled != 0) {
- (*sc->disable)(sc);
- sc->enabled = 0;
- }
- break;
- }
- splx(s);
- return (rv);
-}
-
-int
comopen(dev, flag, mode, p)
dev_t dev;
int flag, mode;