diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-08-10 17:29:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-08-10 17:29:20 +0000 |
commit | 319f6fe0f584e2e088b5b1e2a15c63cc700150d8 (patch) | |
tree | 0bb5789e4faf3d292c151284bc369b25719e19a9 /sys | |
parent | dcfa3c47c6257f900e781ec997d202524f0b0f6f (diff) |
xge_shutdown is not needed now that interface is stopped, since
xge_shutdown was just calling stop again
ok dlg
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_xge.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c index 513df959520..a5d42f705bc 100644 --- a/sys/dev/pci/if_xge.c +++ b/sys/dev/pci/if_xge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xge.c,v 1.49 2008/11/28 02:44:18 brad Exp $ */ +/* $OpenBSD: if_xge.c,v 1.50 2009/08/10 17:29:19 deraadt Exp $ */ /* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */ /* @@ -179,7 +179,6 @@ struct xge_softc { struct ifmedia xena_media; void *sc_ih; - void *sc_shutdownhook; bus_dma_tag_t sc_dmat; bus_space_tag_t sc_st; @@ -223,7 +222,6 @@ int xge_alloc_txmem(struct xge_softc *); int xge_alloc_rxmem(struct xge_softc *); void xge_start(struct ifnet *); void xge_stop(struct ifnet *, int); -void xge_shutdown(void *); int xge_add_rxbuf(struct xge_softc *, int); void xge_setmulti(struct xge_softc *); void xge_setpromisc(struct xge_softc *); @@ -655,8 +653,6 @@ xge_attach(struct device *parent, struct device *self, void *aux) if_attach(ifp); ether_ifattach(ifp); - sc->sc_shutdownhook = shutdownhook_establish(xge_shutdown, sc); - /* * Setup interrupt vector before initializing. */ @@ -811,15 +807,6 @@ xge_stop(struct ifnet *ifp, int disable) ; } -void -xge_shutdown(void *pv) -{ - struct xge_softc *sc = (struct xge_softc *)pv; - struct ifnet *ifp = &sc->sc_arpcom.ac_if; - - xge_stop(ifp, 1); -} - int xge_intr(void *pv) { |