summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rtl81x9.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-08-10 20:29:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-08-10 20:29:55 +0000
commit99a51eb26bb175ed50e8f772700c884309e5b15f (patch)
tree0b0aeae2aba24602ff1f07a64b8ccefefd6892f9 /sys/dev/ic/rtl81x9.c
parentb05b9b0a74f4f8c673615879849fea1280e9c764 (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/rtl81x9.c')
-rw-r--r--sys/dev/ic/rtl81x9.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index da531faf61e..a8e3a906527 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.66 2009/07/21 07:30:18 sthen Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.67 2009/08/10 20:29:54 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -130,7 +130,6 @@
*/
void rl_tick(void *);
-void rl_shutdown(void *);
void rl_powerhook(int, void *);
int rl_encap(struct rl_softc *, struct mbuf * );
@@ -1279,22 +1278,12 @@ rl_attach(sc)
if_attach(ifp);
ether_ifattach(ifp);
- sc->sc_sdhook = shutdownhook_establish(rl_shutdown, sc);
sc->sc_pwrhook = powerhook_establish(rl_powerhook, sc);
return (0);
}
void
-rl_shutdown(arg)
- void *arg;
-{
- struct rl_softc *sc = (struct rl_softc *)arg;
-
- rl_stop(sc);
-}
-
-void
rl_powerhook(why, arg)
int why;
void *arg;
@@ -1436,8 +1425,6 @@ rl_detach(struct rl_softc *sc)
ether_ifdetach(ifp);
if_detach(ifp);
- if (sc->sc_sdhook != NULL)
- shutdownhook_disestablish(sc->sc_sdhook);
if (sc->sc_pwrhook != NULL)
powerhook_disestablish(sc->sc_pwrhook);