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/rtw.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/rtw.c')
-rw-r--r-- | sys/dev/ic/rtw.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/dev/ic/rtw.c b/sys/dev/ic/rtw.c index 53d6f72da68..bbd26d5ec4d 100644 --- a/sys/dev/ic/rtw.c +++ b/sys/dev/ic/rtw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtw.c,v 1.74 2009/07/28 11:45:05 blambert Exp $ */ +/* $OpenBSD: rtw.c,v 1.75 2009/08/10 20:29:54 deraadt Exp $ */ /* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */ /*- @@ -3624,28 +3624,11 @@ rtw_power(int why, void *arg) splx(s); } -/* rtw_shutdown: make sure the interface is stopped at reboot time. */ -void -rtw_shutdown(void *arg) -{ - struct rtw_softc *sc = arg; - - rtw_stop(&sc->sc_ic.ic_if, 1); -} - void rtw_establish_hooks(struct rtw_hooks *hooks, const char *dvname, void *arg) { /* - * Make sure the interface is shutdown during reboot. - */ - hooks->rh_shutdown = shutdownhook_establish(rtw_shutdown, arg); - if (hooks->rh_shutdown == NULL) - printf("%s: WARNING: unable to establish shutdown hook\n", - dvname); - - /* * Add a suspend hook to make sure we come back up after a * resume. */ @@ -3659,9 +3642,6 @@ void rtw_disestablish_hooks(struct rtw_hooks *hooks, const char *dvname, void *arg) { - if (hooks->rh_shutdown != NULL) - shutdownhook_disestablish(hooks->rh_shutdown); - if (hooks->rh_power != NULL) powerhook_disestablish(hooks->rh_power); } |