summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2007-03-04 13:24:49 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2007-03-04 13:24:49 +0000
commitc21809e9d45dc2d913aad1c42323f3f25212a105 (patch)
tree3132b02f9653757e3cde5f82b4a938ad3cf34625 /sys/dev
parentd6190e1e03db76d2c78673b7914c7fb45467e805 (diff)
Third argument to pci_mapreg_map is the "map type", not "memory type".
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ahci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c
index b51cc940325..5b56fa7a8fe 100644
--- a/sys/dev/pci/ahci.c
+++ b/sys/dev/pci/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.54 2007/03/04 13:19:14 pascoe Exp $ */
+/* $OpenBSD: ahci.c,v 1.55 2007/03/04 13:24:48 pascoe Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -527,10 +527,10 @@ unmap:
int
ahci_map_regs(struct ahci_softc *sc, struct pci_attach_args *pa)
{
- pcireg_t memtype;
+ pcireg_t maptype;
- memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, AHCI_PCI_BAR);
- if (pci_mapreg_map(pa, AHCI_PCI_BAR, memtype, 0, &sc->sc_iot,
+ maptype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, AHCI_PCI_BAR);
+ if (pci_mapreg_map(pa, AHCI_PCI_BAR, maptype, 0, &sc->sc_iot,
&sc->sc_ioh, NULL, &sc->sc_ios, 0) != 0) {
printf(": unable to map registers\n");
return (1);