summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rt2860.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2009-11-01 12:08:37 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2009-11-01 12:08:37 +0000
commitbf6fe86349b93e744812bf7fb31f4c14ff60da70 (patch)
tree9ff1723591a2a32abb8f56bfa1e5bcad13b338ac /sys/dev/ic/rt2860.c
parentd8f56a6f5b70c6d42d97990776d14e63a40ac397 (diff)
call powerhook_disestablish() and pci_intr_disestablish() earlier.
diff from deraadt@
Diffstat (limited to 'sys/dev/ic/rt2860.c')
-rw-r--r--sys/dev/ic/rt2860.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/rt2860.c b/sys/dev/ic/rt2860.c
index ed5bb811575..5f977cb89df 100644
--- a/sys/dev/ic/rt2860.c
+++ b/sys/dev/ic/rt2860.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rt2860.c,v 1.35 2009/08/10 17:47:23 damien Exp $ */
+/* $OpenBSD: rt2860.c,v 1.36 2009/11/01 12:08:36 damien Exp $ */
/*-
* Copyright (c) 2007, 2008
@@ -338,12 +338,12 @@ rt2860_detach(void *xsc)
struct ifnet *ifp = &sc->sc_ic.ic_if;
int qid;
- ieee80211_ifdetach(ifp); /* free all nodes */
- if_detach(ifp);
-
if (sc->sc_powerhook != NULL)
powerhook_disestablish(sc->sc_powerhook);
+ ieee80211_ifdetach(ifp); /* free all nodes */
+ if_detach(ifp);
+
for (qid = 0; qid < 6; qid++)
rt2860_free_tx_ring(sc, &sc->txq[qid]);
rt2860_free_rx_ring(sc, &sc->rxq);