summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_stge.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-08-10 19:41:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-08-10 19:41:06 +0000
commitbe16e44bfdbedb5f7dcbaa439bcf4221406f27ab (patch)
tree8551cdc8afc526beb3b4476b9e0a4a399bbcdf9e /sys/dev/pci/if_stge.c
parent8dd15f07927461c362b2078935e71dca46c4fbc0 (diff)
A few more simple cases of shutdown hooks which only call xxstop, when
we now know the interface has already been stopped
Diffstat (limited to 'sys/dev/pci/if_stge.c')
-rw-r--r--sys/dev/pci/if_stge.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/sys/dev/pci/if_stge.c b/sys/dev/pci/if_stge.c
index a574f5e3f89..02b0f3b1534 100644
--- a/sys/dev/pci/if_stge.c
+++ b/sys/dev/pci/if_stge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_stge.c,v 1.48 2009/07/28 08:24:06 sthen Exp $ */
+/* $OpenBSD: if_stge.c,v 1.49 2009/08/10 19:41:05 deraadt Exp $ */
/* $NetBSD: if_stge.c,v 1.27 2005/05/16 21:35:32 bouyer Exp $ */
/*-
@@ -91,8 +91,6 @@ int stge_ioctl(struct ifnet *, u_long, caddr_t);
int stge_init(struct ifnet *);
void stge_stop(struct ifnet *, int);
-void stge_shutdown(void *);
-
void stge_reset(struct stge_softc *);
void stge_rxdrain(struct stge_softc *);
int stge_add_rxbuf(struct stge_softc *, int);
@@ -424,14 +422,6 @@ stge_attach(struct device *parent, struct device *self, void *aux)
*/
if_attach(ifp);
ether_ifattach(ifp);
-
- /*
- * Make sure the interface is shutdown during reboot.
- */
- sc->sc_sdhook = shutdownhook_establish(stge_shutdown, sc);
- if (sc->sc_sdhook == NULL)
- printf("%s: WARNING: unable to establish shutdown hook\n",
- sc->sc_dev.dv_xname);
return;
/*
@@ -463,19 +453,6 @@ stge_attach(struct device *parent, struct device *self, void *aux)
return;
}
-/*
- * stge_shutdown:
- *
- * Make sure the interface is stopped at reboot time.
- */
-void
-stge_shutdown(void *arg)
-{
- struct stge_softc *sc = arg;
-
- stge_stop(&sc->sc_arpcom.ac_if, 1);
-}
-
static void
stge_dma_wait(struct stge_softc *sc)
{