summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pci/es137x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c
index 4094d554f048..6130473846af 100644
--- a/sys/dev/sound/pci/es137x.c
+++ b/sys/dev/sound/pci/es137x.c
@@ -773,7 +773,7 @@ es_pci_attach(device_t dev)
}
}
if (mapped == 0 && (data & PCIM_CMD_PORTEN)) {
- regid = PCI_MAP_REG_START;
+ regid = PCIR_MAPS;
type = SYS_RES_IOPORT;
reg = bus_alloc_resource(dev, type, &regid,
0, ~0, 1, RF_ACTIVE);