summaryrefslogtreecommitdiff
path: root/sys/dev/tc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-20 07:40:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-20 07:40:43 +0000
commita8d7c69788c334b14d463ae7d62315f192665c1a (patch)
tree2c4568c37f5dd209be9f93da275f6571a5a0a739 /sys/dev/tc
parent6457664f9f4ba52fa78a62ee7a55d34402deef45 (diff)
Stop doing shutdown hooks in network drivers where possible. We already
take all interfaces down, via their xxstop routines. Claudio and I have verified that none of the shutdown hooks do much extra beyond what xxstop was already doing; it is largely a pile of junk. ok claudio, some early comments by sthen; also read by matthew, jsg
Diffstat (limited to 'sys/dev/tc')
-rw-r--r--sys/dev/tc/if_fta.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/tc/if_fta.c b/sys/dev/tc/if_fta.c
index c672e39bef1..d0720800c2b 100644
--- a/sys/dev/tc/if_fta.c
+++ b/sys/dev/tc/if_fta.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fta.c,v 1.16 2009/08/13 14:24:47 jasper Exp $ */
+/* $OpenBSD: if_fta.c,v 1.17 2010/09/20 07:40:42 deraadt Exp $ */
/* $NetBSD: if_fta.c,v 1.7 1996/10/22 21:37:26 cgd Exp $ */
/*-
@@ -115,12 +115,6 @@ pdq_tc_attach(parent, self, aux)
tc_intr_establish(parent, ta->ta_cookie, IPL_NET,
(int (*)(void *)) pdq_interrupt, sc->sc_pdq, self->dv_xname);
-
- sc->sc_ats = shutdownhook_establish((void (*)(void *)) pdq_hwreset,
- sc->sc_pdq);
- if (sc->sc_ats == NULL)
- printf("%s: warning: couldn't establish shutdown hook\n",
- self->dv_xname);
}
struct cfattach fta_ca = {