summaryrefslogtreecommitdiff
path: root/sys/dev/ic/elink3.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-13 19:00:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-08-13 19:00:38 +0000
commit01524a7ae8d95d6ec4f08baa3cf0a960ac1cc344 (patch)
tree12fc2fd651ec263b581033316787bdb0a4286fd6 /sys/dev/ic/elink3.c
parent45c8272e1d70ed9c938dae7dda29ef428ec723ad (diff)
shutdown hook exists for the wrong reasons
Diffstat (limited to 'sys/dev/ic/elink3.c')
-rw-r--r--sys/dev/ic/elink3.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/dev/ic/elink3.c b/sys/dev/ic/elink3.c
index c1c3fd2a613..13c3a1f5fa2 100644
--- a/sys/dev/ic/elink3.c
+++ b/sys/dev/ic/elink3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elink3.c,v 1.34 1999/08/08 21:46:15 niklas Exp $ */
+/* $OpenBSD: elink3.c,v 1.35 1999/08/13 19:00:37 deraadt Exp $ */
/* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */
/*
@@ -154,7 +154,6 @@ int epioctl __P((struct ifnet *, u_long, caddr_t));
void epstart __P((struct ifnet *));
void epwatchdog __P((struct ifnet *));
void epreset __P((struct ep_softc *));
-void epshutdown __P((void *));
void epread __P((struct ep_softc *));
struct mbuf *epget __P((struct ep_softc *, int));
void epmbuffill __P((void *));
@@ -348,9 +347,6 @@ epconfig(sc, chipset, enaddr)
sc->tx_start_thresh = 20; /* probably a good starting point. */
- /* Establish callback to reset card when we reboot. */
- shutdownhook_establish(epshutdown, sc);
-
ep_complete_cmd(sc, EP_COMMAND, RX_RESET);
ep_complete_cmd(sc, EP_COMMAND, TX_RESET);
}
@@ -1468,19 +1464,6 @@ epstop(sc)
}
/*
- * Before reboots, reset card completely.
- */
-void
-epshutdown(arg)
- void *arg;
-{
- register struct ep_softc *sc = arg;
-
- epstop(sc);
- ep_complete_cmd(sc, EP_COMMAND, GLOBAL_RESET);
-}
-
-/*
* We get eeprom data from the id_port given an offset into the
* eeprom. Basically; after the ID_sequence is sent to all of
* the cards; they enter the ID_CMD state where they will accept