summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_aue.c
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2000-08-26 20:08:40 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2000-08-26 20:08:40 +0000
commitae97f58a10c52051eb3cfeb5afc2cea2eeadffeb (patch)
tree0f2f69e2a21b46e0711672762b9ebc3aa264b17d /sys/dev/usb/if_aue.c
parent841e005741a8dcb32a106f13731c7dd1e832d2b7 (diff)
Add support for detach of xe and aue.
Diffstat (limited to 'sys/dev/usb/if_aue.c')
-rw-r--r--sys/dev/usb/if_aue.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index eadfa9c6296..9b6c0b5f3b8 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aue.c,v 1.6 2000/07/04 11:44:21 fgsch Exp $ */
+/* $OpenBSD: if_aue.c,v 1.7 2000/08/26 20:08:39 nate Exp $ */
/* $NetBSD: if_aue.c,v 1.38 2000/04/04 20:16:19 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -978,8 +978,12 @@ USB_DETACH(aue)
#if NRND > 0
rnd_detach_source(&sc->rnd_source);
#endif
+#endif
+
mii_detach(&sc->aue_mii, MII_PHY_ANY, MII_OFFSET_ANY);
ifmedia_delete_instance(&sc->aue_mii.mii_media, IFM_INST_ANY);
+
+#if defined(__NetBSD__)
#if NBPFILTER > 0
bpfdetach(ifp);
#endif