summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ix.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_ix.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_ix.c')
-rw-r--r--sys/dev/pci/if_ix.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 067efcc2b69..b12507f6ac9 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.25 2009/08/09 11:40:56 deraadt Exp $ */
+/* $OpenBSD: if_ix.c,v 1.26 2009/08/10 19:41:05 deraadt Exp $ */
/******************************************************************************
@@ -65,7 +65,6 @@ int ixgbe_probe(struct device *, void *, void *);
void ixgbe_attach(struct device *, struct device *, void *);
int ixgbe_detach(struct device *, int);
void ixgbe_power(int, void *);
-void ixgbe_shutdown(void *);
void ixgbe_start(struct ifnet *);
void ixgbe_start_locked(struct tx_ring *, struct ifnet *);
int ixgbe_ioctl(struct ifnet *, u_long, caddr_t);
@@ -239,7 +238,6 @@ ixgbe_attach(struct device *parent, struct device *self, void *aux)
IXGBE_WRITE_REG(&sc->hw, IXGBE_CTRL_EXT, ctrl_ext);
sc->powerhook = powerhook_establish(ixgbe_power, sc);
- sc->shutdownhook = shutdownhook_establish(ixgbe_shutdown, sc);
printf(", address %s\n", ether_sprintf(sc->hw.mac.addr));
@@ -305,20 +303,6 @@ ixgbe_power(int why, void *arg)
}
/*********************************************************************
- *
- * Shutdown entry point
- *
- **********************************************************************/
-
-void
-ixgbe_shutdown(void *arg)
-{
- struct ix_softc *sc = (struct ix_softc *)arg;
-
- ixgbe_stop(sc);
-}
-
-/*********************************************************************
* Transmit entry point
*
* ixgbe_start is called by the stack to initiate a transmit.