summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-09-03 15:24:31 +0000
committerjhb <jhb@FreeBSD.org>2003-09-03 15:24:31 +0000
commitd5c4ef5547dcaf9a4533862700c38b7ea4313cff (patch)
tree7fa9c7fc15cf671e051e174489b22a7d01d90c91 /sys/dev/pci
parentc9c6c3f8e32fc41f13496ac91729b9df76a46298 (diff)
downloadFreeBSD-src-d5c4ef5547dcaf9a4533862700c38b7ea4313cff.zip
FreeBSD-src-d5c4ef5547dcaf9a4533862700c38b7ea4313cff.tar.gz
Replace another instance of PCIR_MAPS with PCIR_BAR(x).
Reminded by: dfr
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index c4a1147..5af67a3 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1344,7 +1344,7 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
break;
case SYS_RES_IOPORT:
case SYS_RES_MEMORY:
- if (*rid < PCIR_MAPS + 4*cfg->nummaps) {
+ if (*rid < PCIR_BAR(cfg->nummaps)) {
/*
* Enable the I/O mode. We should
* also be allocating resources
OpenPOWER on IntegriCloud