summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_re_pci.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-08-10 20:29:52 +0000
committerderaadt <deraadt@openbsd.org>2009-08-10 20:29:52 +0000
commit67600e63bc8b0c942fccf93ec5d50227868b813b (patch)
tree8f2a3f995b3ea2c5e148671d320e6e4acf347c7e /sys/dev/pci/if_re_pci.c
parentUSB network devices do not DMA in a way that requires a shutdown function (diff)
downloadwireguard-openbsd-67600e63bc8b0c942fccf93ec5d50227868b813b.tar.xz
wireguard-openbsd-67600e63bc8b0c942fccf93ec5d50227868b813b.zip
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/pci/if_re_pci.c')
-rw-r--r--sys/dev/pci/if_re_pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/if_re_pci.c b/sys/dev/pci/if_re_pci.c
index 8cd6b5415b6..0e2a0ade841 100644
--- a/sys/dev/pci/if_re_pci.c
+++ b/sys/dev/pci/if_re_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_re_pci.c,v 1.24 2009/01/22 19:26:07 kettenis Exp $ */
+/* $OpenBSD: if_re_pci.c,v 1.25 2009/08/10 20:29:52 deraadt Exp $ */
/*
* Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org>
@@ -225,8 +225,6 @@ re_pci_detach(struct device *self, int flags)
if_detach(ifp);
/* No more hooks */
- if (sc->sc_sdhook != NULL)
- shutdownhook_disestablish(sc->sc_sdhook);
if (sc->sc_pwrhook != NULL)
powerhook_disestablish(sc->sc_pwrhook);