diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-08-10 20:29:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-08-10 20:29:55 +0000 |
commit | 99a51eb26bb175ed50e8f772700c884309e5b15f (patch) | |
tree | 0b0aeae2aba24602ff1f07a64b8ccefefd6892f9 /sys/dev/ic/hme.c | |
parent | b05b9b0a74f4f8c673615879849fea1280e9c764 (diff) |
More cases of shutdown hooks not needed after card is already stopped. In
these cases the xxstop function is a bit more complicated and has a flag of
some sort, but the use of that flag does not matter; DMA is already ceased
ok dlg
Diffstat (limited to 'sys/dev/ic/hme.c')
-rw-r--r-- | sys/dev/ic/hme.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index 3c5a9413a59..bf0cee0d677 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.59 2009/08/09 11:40:58 deraadt Exp $ */ +/* $OpenBSD: hme.c,v 1.60 2009/08/10 20:29:54 deraadt Exp $ */ /* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */ /*- @@ -87,7 +87,6 @@ void hme_stop(struct hme_softc *); int hme_ioctl(struct ifnet *, u_long, caddr_t); void hme_tick(void *); void hme_watchdog(struct ifnet *); -void hme_shutdown(void *); void hme_init(struct hme_softc *); void hme_meminit(struct hme_softc *); void hme_mifinit(struct hme_softc *); @@ -294,10 +293,6 @@ hme_config(sc) if_attach(ifp); ether_ifattach(ifp); - sc->sc_sh = shutdownhook_establish(hme_shutdown, sc); - if (sc->sc_sh == NULL) - panic("hme_config: can't establish shutdownhook"); - timeout_set(&sc->sc_tick_ch, hme_tick, sc); return; @@ -1326,13 +1321,6 @@ hme_ioctl(ifp, cmd, data) } void -hme_shutdown(arg) - void *arg; -{ - hme_stop((struct hme_softc *)arg); -} - -void hme_iff(struct hme_softc *sc) { struct ifnet *ifp = &sc->sc_arpcom.ac_if; |