summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_ath_pci.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-07-30 16:47:10 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-07-30 16:47:10 +0000
commit02a291b460781bb961f8b9e8a3c2a41491d9a3e1 (patch)
tree7245879105516c617f68d1f754f817ca886a46b4 /sys/dev/pci/if_ath_pci.c
parent63b3d81e30bcb74f56859f03d04841d8324bd5c2 (diff)
Check and clear the bus space mapping size instead of the bus space
handle in the detach function. Fixes compilation on sparc64. ok reyk@
Diffstat (limited to 'sys/dev/pci/if_ath_pci.c')
-rw-r--r--sys/dev/pci/if_ath_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ath_pci.c b/sys/dev/pci/if_ath_pci.c
index b0097b3e4e6..d296afcc94a 100644
--- a/sys/dev/pci/if_ath_pci.c
+++ b/sys/dev/pci/if_ath_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ath_pci.c,v 1.17 2008/07/29 00:18:25 reyk Exp $ */
+/* $OpenBSD: if_ath_pci.c,v 1.18 2008/07/30 16:47:09 brad Exp $ */
/* $NetBSD: if_ath_pci.c,v 1.7 2004/06/30 05:58:17 mycroft Exp $ */
/*-
@@ -213,9 +213,9 @@ ath_pci_detach(struct device *self, int flags)
psc->sc_sdhook = NULL;
}
- if (sc->sc_sh != 0) {
+ if (sc->sc_ss != 0) {
bus_space_unmap(sc->sc_st, sc->sc_sh, sc->sc_ss);
- sc->sc_sh = 0;
+ sc->sc_ss = 0;
}
return (0);